- Project Concept :This backend for for restore website. Here user can buy and sell there product with dashboard.
TypeScript, Mongoose, MongoDB, Cors, dotenv, jsonwebtoken, eslint, express, nodejs
- Clone the repository:
- First, you need to clone and open your terminal and type:
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
- First, you need to clone and open your terminal and type:
- Open files in VS Code:
- After opening the server-side files in VS Code, install npm dependencies both file:
npm install
- After opening the server-side files in VS Code, install npm dependencies both file:
- Environment setup:
- In your server side configure environment variables by creating a
.env
file in the root directory. Add the following variables:PORT=3000 MONGODB_URI=mongodb:add your mongodb url
- In your server side configure environment variables by creating a
- Access the server :
-
- Check the
tsconfig.json
and check whice command add there.
- Live reloading for typescript code :
npm run start
- The compiled javascript entry point for production environment :
npm run start:prod
- Runs the TypeScript compiler to transpile TypeScript files into JavaScript files :
npm run build
- Lints defined coding standards and check error :
npm run lint
- Automatically fix any linting errors :
npm run lint:fix
- Check the