npm install
The environment variables can be found and modified in the .env
file. See .env.example
for default values.
src/
|--Versions/ # Versions List
| |--V{/\d+/}/ # Version (Example: V1, V2, V3)
| | |--Controllers/ # Controllers
| | |--Routes/ # Routes
|--Internals/ # Framework
|--Controllers/ # Controllers
|--Routes/ # Main Routes
|--Database/ # Database configuration
|--Middlewares/ # Custom express middlewares
|--Utils/ # Utility classes and functions
|--Types/ # Typescript types definition
|--App.ts # Express app
|--index.ts # Entry
In the project directory, you can run:
npm start
build the project for production.
npm run build:production
build the project for development.
npm run build:development
Run all clean script.
npm run clean
Removes all the files generated by the build process.
npm run clean:build
Removes all logs.
npm run clean:logs
Transpile eslint.config.ts
into eslint.config.js because eslint cannot read Typecript config.
npm run lint:build
Finds linting errors.
npm run lint:check
Fix linting errors.
npm run lint:fix
Fix the code formatting.
npm run prettier:fix
Check the code formatting.
npm run prettier:check
Check Typescript types.
npm run types:check
Check linting, code formatting, Typescript types.
npm run check
Fix linting, code formatting, and check Typescript types.
npm run fix