Boilerplate for a TypeScript REST API (Express) performing CRUD operations with TypeORM. Swagger enabled. (/swagger-ui)
DB configuration: /ormconfig.json
{
"type": "mysql",
"host": "localhost",
"port": 3306,
"username": "root",
"password": "root",
"database": "test",
"entities": ["dist/**/*.entity{.ts,.js}"],
"synchronize": true
}
npm install
npm run swagger
npm run build && npm run start
npm run build
docker-compose up -d
npm run test
npm run test:coverage
The coverage report will be saved under ./reports/coverage
folder.