- Git
- MySQL Server CE
- Node.js
- Copy .env.example to .env and fill database details
- Run
npm install -g nx prisma @nestjs/cli
to globally install useful CLI's. - Run
npm install
. It should also setup husky git hooks. - Run
husky setup
to setup git hooks. - Run
npx prisma migrate dev --name init
to initialize schema on the database - Optional: Run
npx prisma db seed
on local environment to seed database with random data.
- Run
nx serve api
.
- Run
npm test
. It will run both Unit and E2E test (Note: Web server should be running before starting E2E tests)