Full-featured starter for Typescript Node & Mongo Rest API server featuring NestJS!
- Install packages with
yarn install
- Create env file
cp .env.example .env
- Configure mongo db URL (e.g. one pointing to Mongo Atlas)
- Develop app
yarn start:dev
- user signup
- user activation
- user login
- user relogin
- password reset
- forgotten password
This project uses modular swagger configuration. Each feature has it's own swagger document. Follow these steps to add new feature:
- In feature folder create
feature.swagger.ts
file. - Call
setupSwaggerDocument
and export the returned function. - Register feature module in
feature.module.ts
by calling the exported function from step 2. - Access your document at
/docs/:featurePath
.
After successful run, check out the output at http://localhost:3001/docs/auth/