- Node.js
- NPM
- TypeScript, NestJS v10.0.0
- Git
- MongoDB
Let's clone the repository on your machine.
The application includes the following files and folders.
src- code for the application written in TypeScript, NestJS, Express.js.test- to test all the features..env.example- a sample of .env which can be helpful for configuration.
# architecture
# deep drive in src directory
src/
βββ todo/
β βββ dto/
β β βββ todo.dto.ts
β β βββ index.ts
β β
β βββ schemas/
β β βββ todo.schema.ts
β β
β βββ todo.controller.ts
β βββ todo.module.ts
β βββ todo.service.ts
β
βββ app.module.ts
βββ main.ts
Let's move to the cloned directory with your terminal.
To install, build, and start the application for the first time, run the following commands:
npm installLet's rename from .env.example to .env and make sure all the necessary information is correct:
PORT=3000
MONGODB_URI=<MongoDB_ATLAS_URI_HERE_PLEASE>
FRONTEND_URL=<FRONTEND_WEB_APP_URL_HERE_PLEASE>Already done? Cool! You are almost ready to enjoy the app. β³οΈ
npm run start
Oh! You wanna trigger testing for the application from terminal
# e2e tests
npm run test:e2e
- Author - Sazal Ahamed
- Linkedin - Profie
- GitHub - DevSazal