后端架构Node.js
文件夹结构 :office_building:
├───src
│ app.ts # App entry point
│ ├───api # Express route controllers and middleware for all the endpoints of the app
│ ├───config # Environment variables and configurati
nestjs-cqrs-starter
Starn项目:
第一步需要启动数据库;
docker-compose up -d
使用数据库连接将ormconfig.example.json复制到ormconfig.json;
安装依赖项;
npm i
全局安装typeorm以使用typorm cli;
sudo npm i typeorm -g
对于实时启动项目
npm run start:live
用于将.ts的.ts文件编译为./dist/文件夹;
npm run presta