Stack:
- Next
- Nest
- Prisma
Key features:
- GH actions with linting, building and auto deploy
- Docker compose with postgres and pgAdmin for dev
- TS-Rest for end-to-end type-safety and auto generated swagger
- Shared package for reusable code between packages
- Pre-configured tailwind
- Next with Server Components
- No JS only TS
Prerequisites:
- NodeJS 20+
- Pnpm 8+
- Docker with docker compose
First start:
- Run
pnpm i
to install dependencies - Prepare env files. I created .env.example with default envs
- Run
docker compose up
to start db - Run pnpm nx run api:serve to start api app
- Run pnpm nx run web:serve to start web app
Blocked features:
- Aliases inside apps
Reasons:- tsconfigs paths do not combine, so if I will add aliases, then root aliases will be removed