You need to have docker & docker-compose installed on your pc.
Then just run the following command in the root of the project :
docker-compose upOpen two other terminals, one for the API and one for the APP, and run the following commands in each terminal :
docker-compose exec api npm run devdocker-compose exec app npm run devYou can then access the app at http://localhost:3000 and the api at http://localhost:8080
You can also open terminals in the running containers with the following two commands:
docker-compose exec api sh
docker-compose exec app shInstall MongoDB, and a service should be running on you pc for you local db. You can change port & db name from the .env file. Install node & npm (latest versions should work, my current config is : node v20.10.0, npm: 10.2.3)
For API :
cd api
npm iFor APP :
cd app
npm iAdd a .env file in the API directory.
For dev, you can copy paste the .env.example, it should work:
cp api/.env.example api/.env
Then start the API and the APP with npm run dev in each terminal.
Now, you need to initialize the database with an admin user and some default config. To do so, you can use the following docker compose commands:
docker-compose exec api node src/scripts/createAdmin.js
docker-compose exec api node src/scripts/initSeasons.jsThen hf ! :)
See you ingame ! Cheers, TNT
P.S. : all feedbacks and PRs are welcomed, feel free !!