Because pong is so great
Its a school project
You have two options here. run everything seperately or use docker compose
- Put all your
.env
files in/config
(you can see examples of all files in/config/examples
) - Run
docker compose up -d
in the root of the repository. - Done! 😄
- Put an
.env
file in/vivid-client
and/vivid-server
(you can see examples of all files in/config/examples
) - Install dependencies
# vivid-client
cd vivid-client
npm install
# vivid-server
cd vivid-server
npm install
- Run everything
# vivid-client (development)
cd vivid-client
npm run start
# vivid-server (development)
cd vivid-server
npm run start:dev
# vivid-client (production)
cd vivid-client
npm run start # ctrl+c after starting the server
npm run build # the build is now ready in /vivid-client/build
# vivid-server (production)
cd vivid-server
npm run build
node ./dist/main.js