Skip to content

Repository files navigation

Assignment-2-Level-2

Required Installation Command:

  • 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

About

Developed an Express application with TypeScript as the programming language, integrating MongoDB with Mongoose for effective data management. Ensure data integrity through validation using Joi/Zod

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages