The project is a starter-pack which utilizes lukeautry/tsoa package (TSOA Official Github) for Node Express and MongoDB backend rapid development in TypeScript which enables the Repository Patterndesign.
TSOA provides a CLI Tool to generate Routes and Swagger Specs to empower SwaggerUI for APIs Documentation.
- Clone the repo
- IMPORTANT: Install devDependencies first by running
npm install --only=dev. This is to install copyfiles and typescript packages. The reason is that I am using my forked repo of the official lukeautry/tsoa repo. - Install dependencies
- Run
npm run start-gento generateroutes.tsandswagger.json - Run
npm startto start the server. Alternatively, you can runnpm run start-devto runtsc -wandnodemonto keep watching for file changes but there is a bug when using concurrently. - Server will run locally on port 8080. SwaggerUI will run at:
localhost:8080/api/docs
- Nartc (Chau): Just a developer.