Run npm run docker:prod
to start the docker containers. Navigate to http://localhost:3000/api/openApi to see the app running.
Run npm i -g pnpm
to install pnpm globally. Then run pnpm i
to install all dependencies.
Run pnpm run docker
to start the docker containers like databases and rabbitmq.
Run pnpm start
to start the app. Navigate to http://localhost:3000/api/openApi to see the app running.
If you made changes to the entities, change the package.json to target the right service:
"mikro-orm": {
"useTsNode": true,
"tsConfigPath": "tsconfig.orm.json",
"configPaths": [
"./libs/event-service/core/src/mikro-orm.config.ts"
]
},
Then run pnpm run typeorm:migration:generate
to generate the new migration files.
Just starts the docker containers, you also need to recreate the flyway images
Run npm run build:all
to build the app.
Run nx run-many --target=test --all
to run all tests.