To launch backend server install node package using:
npm install
After package installations, you can start nodemon launching:
npm run dev
Or with docker:
npm run docker:dev
app
: folder for frontend application;src
: folder for backend application;interfaces
: contains all interfaces to take full advantage of typescript;loaders
: this folder contains all script to initialize server, executed once at server startup, like dependency container and express initialization;middleware
: this folder group all middleware;models
: folder for database entity;routes
: api entry point;services
: folder with all Business logic;
This project is predispose to use Dependency Injection. See typedi documentation.
To validate request has been introduced celebrate middleware.
It has already been implemented an example test api
{
"id": "xyz"
}
{
"id": "xyz",
"name": "test",
"email": "[email protected]",
"creationDate": "2022-11-19T08:55:41.849Z"
}