Uses CelosiaJS framework.
Previously express-boilerplate.
npm installThe environment variables can be found and modified in the .env file. See .env.example for default values.
src/
|--Controllers/ # Controllers
|--Middlewares/ # Middlewares
|--Repositories/ # Repositories
|--Routes/ # Main routes
|--Services/ # Repositories
|--Types/ # Typescript types definition
|--Utils/ # Utility classes and functions
|--Versions/ # Versions list
| |--V{/\d+/}/ # Version (Example: V1, V2, V3)
| | |--Controllers/ # Controllers
| | |--Routes/ # Routes
|--App.ts # CelosiaJS instance
|--index.ts # Entry
In the project directory, you can run:
npm startBuild the project for production
npm run buildStart the built project
npm run prodRun all clean script.
npm run cleanRemoves all the files generated by the build process.
npm run clean:buildRemoves all logs.
npm run clean:logsFinds linting errors.
npm run lint:checkFix linting errors.
npm run lint:fixCheck the code formatting.
npm run prettier:checkFix the code formatting.
npm run prettier:fixCheck Typescript types.
npm run types:checkCheck linting, code formatting, Typescript types.
npm run checkFix linting, code formatting, and check Typescript types.
npm run fix