Skip to content

A Hackathon Starter Pack using TSOA for Node Express MongoDB Backend Rapid Development

Notifications You must be signed in to change notification settings

nartc/TSOA-Hackathon-Ready

Repository files navigation

TSOA Hackathon Ready Pack

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.

Steps

  1. Clone the repo
  2. 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.
  3. Install dependencies
  4. Run npm run start-gen to generate routes.ts and swagger.json
  5. Run npm start to start the server. Alternatively, you can run npm run start-dev to run tsc -w and nodemon to keep watching for file changes but there is a bug when using concurrently.
  6. Server will run locally on port 8080. SwaggerUI will run at: localhost:8080/api/docs

Author

  • Nartc (Chau): Just a developer.

About

A Hackathon Starter Pack using TSOA for Node Express MongoDB Backend Rapid Development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published