Built with NestJS and TypeScript
- clone the repo
git clone https://github.com/Tope19/nestjs-api-boilerplate.git - cd into the project root folder
- To install the dependencies run
npm install - run
npm run buildto create a production build. - Run the server in development mode
npm run start:dev. - Run the server in producttion mode
npm run start:prod. - Create a Database Migration file
npm run typeorm migration:create ./src/database/migration/${file name}. - To Generate a Database Migration File from your Entity Schema
npm run typeorm migration:generate ./src/database/migration/${file name}. - Revert a Database Migrattion file
npm run typeorm migration:revert - Migrate the database
npm run typeorm migration:run - Swagger Api Doc Url
localhost:3000/api-doc
-
You may save the hassle of setting up Swagger on your Application because this Application already has Inbuilt SwaggerAPi.
-
It includes a CRUD example to let you design your own for each entity, guard, service, controller, etc.
-
You only need to copy the env.example file and change it with your information and chosen TypeOrm DB Connection because TypeOrm Config is already configured by default to use POSTGRESQL.
-
The application also makes an effort to adhere to best practices for code structure and will continually be enhanced to ensure code readability.
-
The application comes with full authentication procedures, which will help to cut down on development time. The Upcoming Version will include Social Login Authentication with Google.