Skip to content

Final 42 project : create a website with real-time multiplayer online game and online chat

License

Notifications You must be signed in to change notification settings

Arivima/42_ft_transcendence

Repository files navigation

42RomaLuiss__ft_transcendence

Final 42 project Create a website with real-time multiplayer online game and online chat

Links to team resources :

ft_transcendence

Run on docker: docker-compose up --build

For let it running in local: change file .env POSTGRES_HOST

docker-compose up --build -d docker stop backend cd backend-nest npm install (only the first time) npm run start:dev (running for development, the server will look for changes in the code and restart automatically) npm run start:prod (running for production)

How to Run Prisma

Ensure you installed the prisma CLI and prisma client
(on the cluster machines, install them locally for we do not have global permissions)

npm i -D prisma
npm i -g @prisma/client

-g = global installation
-D = local installation

Each Time you make a change to the .schema file, run

npx prisma generate

npx prisma migrate dev (only if you are working locally)

Create a .env file in your prisma directory

with this environment variable if local execution

DATABASE_URL="postgresql://dbuser:dbpwd@localhost:5433/database?schema=public&connect_timeout=19000"

with this environment variable if containerized execution

DATABASE_URL="postgresql://dbuser:dbpwd@database:5432/database?schema=public&connect_timeout=19000"

About

Final 42 project : create a website with real-time multiplayer online game and online chat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •