#INFOS The interesting part of the NestJS code for the database connection is in these 2 files in ./backend/src/ : app.module.ts and orm.config.ts
#PREREQUIS
-
Docker installed
-
TypeOrm and pg npm lib have been installed with the command: npm install @nestjs/typeorm typeorm pg
-
Add an .env file in the ./docker_db/ directory with the necessary variables defined
#RUN
- in the ./backend dir, run :
If you are on a new machine, beforehand run :
docker volume create postgres
npm install
then always:
docker-compose up -d
npm run start:dev
- in the ./frontend dir, run :
If you are on a new machine, beforehand run :
npm install
then always:
npm run start