Skip to content

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

Notifications You must be signed in to change notification settings

QuaziSamiha/Assignment-2-Level-2

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

Watchers

Forks

Releases

No releases published

Packages

No packages published