-
Github Link : (https://github.com/QuaziSamiha/Assignment-2-Level-2.git)
-
Live Site : (https://assignment-2-level-2-nine.vercel.app/)
-
Server: (http://localhost:3100/)
-
npm init -y (for initializing package.json file)
-
npm install express
-
npm install mongoose --save
-
npm install typescript --save-dev
-
npm i cors
-
npm install dotenv --save
-
tsc -init (for typescript config file)
-
npm i --save-dev @types/express
-
npm i --save-dev @types/node
-
npm i --save-dev @types/cors
-
Eslint and prettier for project:
-
npm install eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-dev
-
npx eslint --init
-
npm install --save-dev prettier
-
npx prettier --write src/app.ts
-
npm install --save-dev eslint-config-prettier (to avoid conflict between prettier and eslint)
-
Command for eslint: npm run lint:fix
-
Command to run project locally:
-
for node_modules: npm install
-
to run project: npm run start:dev
-
Command for production: npm run start:prod
-
for Zod validation: npm install zod