This is a MonoRepo project consisiting of a NestJs backend and React Front end. It uses the following
- Ant Design system v5
- Prisma (ORM) v4.13
- Node v16+
- npm
- Nx v16+
- PostgreSQL database
- Docker
- Clone project
- Navigate into project
cd mini-hrs
- Install dependancies
npm install
- Create a .env file with the following configuration
DATABASE_URL="postgresql://<user>:<password>@<host>:<port>/<database>?schema=<schema>"
- Serve front-end
nx serve front-end
and navigate tohttp://localhost:4200/
- Serve api
nx serve back-end
and navigate tohttp://localhost:3000/api
Run nx test front-end
. Project uses Jest
For e2e testing with Cypress run nx e2e front-end-e2e
Run nx test back-end
Run nx e2e back-end-e2e
Run nx graph
to see a diagram of the dependencies of the projects.
Run nx build front-end:production
Run nx build backe-end:production
The project uses Prisma ORM.
To run migrations npx prisma migrate dev
Run npx prisma studio
and navigate to http://localhost:5555
Run npx nx connect-to-nx-cloud
to enable remote caching and make CI faster.