An example RESTful API .
Clone the repo by using git clone.
Run npm install .
create .env file to suit your needs.
Express
Typescript
TypeOrm
Inversify
Tsoa
src
│ app.js # App entry point
└───bin # Express route starter file
└───config # configuration related stuff
└───controllers # Express route controllers for all the endpoints of the app
└───database
└───migrations # Database migration files
└───seeders # Database seeders files
└───models # Database models
└───repositories # custom db repositories
└───routes # tsoa swagger generated routes
└───services # All the business logic is here
└───subscribers # event subscribers
└───types # typescript custom types
└───utils # common helper classes
Run on your terminal npm run watch:dev, the server will restart everytime we make a change in our code.
run npm run start
transpile- convert typescript and beyond code to es5 to a folder namedbuildclean- delete transpiled folderbuild- clean and transpilegenerate:swagger- to generate swagger routesmigration:dev- run migrations
For the versions available, see the tags on this repository.
Amell Fezai - Initial work
This project is licensed under the MIT License - see the LICENSE.md file for details