✨ This workspace has been generated by Nx, a Smart, fast and extensible build system. ✨
git clone
して手元にこのリポジトリを置く- workspace の root で
npm install
する docker-compose up
して- user-service 用の DB を起動する
- post-service 用の DB を起動する
cd ./apps/user-service
してnpx prisma generate
,npx prisma migrate dev
cd ./apps/post-service
してnpx prisma generate
,npx prisma migrate dev
- DB が migrate してテーブルができていることを確認
nx run-many --target=serve --all=true
で bff, user, post のサービスを起動する
今回下記の対応はしていない
- fastify, mercurius 構成 => serve でうまく動かない症状が出たため
- 完全な CRUD 実装 => post-service のみ RESTAPI として CRUD が行える
- production に向けた deploy 用の設定 => sample なのでローカル開発できるところまで
- lint や test, tsconfig などの設定 => 取り合えずデフォルト設定
Run nx graph
to see a diagram of the dependencies of the projects.
Run npx nx connect-to-nx-cloud
to enable remote caching and make CI faster.
Visit the Nx Documentation to learn more.