-
Flow: Controller --> Service --> Repository --> TypeORM Entity
-
We combine all dependency in "container", then resolve and export the controller to use in routes
ORM: TypeORM
npm run start:dev
npm run build
npm run start:prod
npm run migration:generate
npm run migration:start
-
- Create new Entity Class in src/models
-
- Create new repository and its repository interface in src/repository
-
- Create new service and its service interface in src/service
-
- Create new controller and its controller interface in src/controller
-
- Combine all to container in src/container
-
- Create new route in src/route
chabuuuu