Collect the things so useless you steal them anyway
Prerequisites -> npm, docker
git clone https://github.com/Alexandre-Roussel48/UselessThingsToSteal.git
cd UselessThingsToSteal
cd UTTS_backend
npm install
cd ../UTTS_frontend
npm install
cd ..Rename file UTTS_database/docker-compose.yml.sample -> UTTS_database/docker-compose.yml and complete informations Rename file UTTS_backend/.env.sample -> UTTS_backend/.env and complete informations Rename file UTTS_frontend/.env.sample -> UTTS_frontend/.env and complete informations
You can add or remove cards carefully in backend/prisma/seed.js.
First time :
cd UTTS_database
docker compose up --build &
cd ../UTTS_backend
npm run db
fg
(ctrl-c)cd UTTS_database
docker-compose up --buildcd UTTS_backend
npm run backcd UTTS_frontend
npm run devssh dokku@cluster-ig3.igpolytech.fr postgres:create utts-databasegit remote add dokku dokku@cluster-ig3.igpolytech.fr:utts-backend
ssh dokku@cluster-ig3.igpolytech.fr apps:create utts-backend
ssh dokku@cluster-ig3.igpolytech.fr postgres:link utts-database utts-backend
ssh dokku@cluster-ig3.igpolytech.fr config:set utts-backend KEY=VALUE
git push dokku main:master
ssh dokku@cluster-ig3.igpolytech.fr letsencrypt:set utts-backend email alexandre.roussel03@etu.umontpellier.fr
ssh dokku@cluster-ig3.igpolytech.fr ports:add utts-backend http:80:5000
ssh dokku@cluster-ig3.igpolytech.fr letsencrypt:enable utts-backend
ssh dokku@cluster-ig3.igpolytech.fr ports:add utts-backend https:443:5000
ssh dokku@cluster-ig3.igpolytech.fr ports:add utts-backend https:5001:5001
ssh dokku@cluster-ig3.igpolytech.fr ports:remove utts-backend http:5000:5000
ssh dokku@cluster-ig3.igpolytech.fr ports:remove utts-backend http:5001:5001
ssh dokku@cluster-ig3.igpolytech.fr ports:remove utts-backend http:80:5000git remote add dokku dokku@cluster-ig3.igpolytech.fr:utts
ssh dokku@cluster-ig3.igpolytech.fr apps:create utts
ssh dokku@cluster-ig3.igpolytech.fr config:set utts KEY=VALUE
git push dokku main:master
ssh dokku@cluster-ig3.igpolytech.fr letsencrypt:set utts email alexandre.roussel03@etu.umontpellier.fr
ssh dokku@cluster-ig3.igpolytech.fr ports:add utts http:80:5002
ssh dokku@cluster-ig3.igpolytech.fr letsencrypt:enable utts
ssh dokku@cluster-ig3.igpolytech.fr ports:add utts https:443:5002
ssh dokku@cluster-ig3.igpolytech.fr ports:remove utts http:5002:5002
ssh dokku@cluster-ig3.igpolytech.fr ports:remove utts http:80:5002