The best practice of building koa application with typescript, MongoDB, routing-controllers, Typeorm and socket.io.
.
└── koa-app/
└── src/
├── assets
├── boostrap --- Initialize the database and websocket
├── config --- database and jwt etc.
├── controllers
├── entities
├── middlewares --- middlewares such as jwt, error handle, etc.
├── services
├── sockets
├── types
├── utils
├── application.ts
└── index.ts --- entry
- Middlewares include Jwt, error handle, common response, cache
- TypeScript hotload.
- Export scheme model and interface, follow style of TypeScript.
pnpm run dev
- Added docker support