- mikro-orm for persistance layer and documentation
- tsoa for presentation layer
- module-alias to manage modules
- jest for unit test
- supertest for e2e test
- Create and configure .env file for local environment
- All configurations for Database are applied in file
repo-context.ts - Now app can be run with below command
npm run dev:start- Please check
pakcage.jsonfor all runnable script
- Migration is triggered in
index.tsorglobal-suite.tsfiles - Sqlite migration files are always created with initialized option and won't be saved
- With MySQL, migration file must be created manually, When definetion of entities or decorators are changed
- Before command, Database is configured properly as MySQL
Please refer Official Website of Mikro-ORM
- Before command, Database is configured properly as MySQL
# Only at first time
npx mikro-orm migration:create --initial
npx mikro-orm migration:createNote
routes.ts,swagger.jsonfiles are generaged with tsoa library.
When files aren't generaged,app.tsfile would errors.
For example when just download this project.
Then build or generate with commandsnpm run buildornpm run routes