First, run the development server:
"npm run start"
Open http://localhost:4000 with your browser to see the Apollo Sandbox
The whole application can be launched on the front side of the project with the "docker compose up" command or "docker compose up --build"
connect to the database with the "npx prisma studio" command run the migrations with the "npx prisma migrate dev" command update the database with the "npx prisma generate" command
First time installing the app ?
1- Create a .env file in which you put your credentials following this model:
. One URL for Docker
. One URL to work locally
exemple:
DATABASE_URL="mysql://root@localhost:3306/virtuoz"
(=> change for your credentials and your type of database you choose to work with)
. A jwt secret key following this model: JWTKEY = "choose a very long secret key"
2- connect your .env file with Prisma with the "npx prisma generate" command