- vscode (https://code.visualstudio.com/)
- git (https://git-scm.com/downloads) (si vous puez la merde et que vous etes sur windows)
- docker (https://www.docker.com/products/docker-desktop/)
- node 16 (https://nodejs.org/fr/download/)
- prisma
- eslint
- thunderclient (optionnel mais ça peut être pratique)
- Créer un fichier .env et coller :
API_PORT=3333
NODE_ENV=development
#################
API_PORT=3333
STUDIO_PORT=4444
POSTGRES_EXPOSE_PORTS=127.0.0.1:5432:5432
#################-> API
ACCESS_SECRET_KEY="access_token_bonsoir"
REFRESH_SECRET_KEY="refresh_token_bonsoir"
#################-> POSTGRES
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}"
#################-> ADMIN
ADMIN_PASSWORD="945239b7e4089692160a3e58225f04830c58dd9853bfb2d0279152881ba0c778"
npm inpx prisma generateCrée la bd la première fois depuis le schema
npx prisma migrate devPour crée une migrationnpx prisma migrate deployPour appliquer une migration
docker-compose up postgresnpm run devnpx prisma studio(pour avoir l'interface graphique de la bd)
- API : https://api.team2large.fr/
- FRONT : https://www.team2large.fr/
- STUDIO (BD) : https://database.team2large.fr/