A remote planning poker application with multiple and customisable card decks.
This application comes with a docker-compose.yml and a Dockerfile for both backend and frontend. Simply run it with the desired parameters or export these to the env first.
BACKEND_PORT=8080 BACKEND_URL=http://example.org FRONTEND_PORT=80 docker-compose up -d --build
This guide assumes the server already has nodejs installed.
npm install
npm run build
Use a .env file or export the following variables to the env.
ENV=prod
PORT=8080
Then run the server using node or, if auto-restart on crash is desired, pm2
pm2 start ./dist/index.js
Configure the environment prior to building, since React injects env vars during the build process:
REACT_APP_BACKEND_URL=http://example.org
Then install dependencies and build.
npm install
npm run build
Finally, serve the files with a webserver like nginx, apache, serve,... For this example serve was used
npm install -g serve
serve -p 80 ./build
Copy .env.example
cp .env.example .env
Install dependencies and run using nodemon
npm install
npm run watch
Install dependencies and start dev server
npm install
npm run start