- 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.json
for all runnable script
- Migration is triggered in
index.ts
orglobal-suite.ts
files - 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:create
Note
routes.ts
,swagger.json
files are generaged with tsoa library.
When files aren't generaged,app.ts
file would errors.
For example when just download this project.
Then build or generate with commandsnpm run build
ornpm run routes