Skip to content

jannes-io/planningpoker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Planning Poker app

A remote planning poker application with multiple and customisable card decks.

Live version

License TypeScript Code Style

Self-hosting

Docker

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

Manual

This guide assumes the server already has nodejs installed.

Backend

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

Frontend

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

Development

Backend

Copy .env.example

cp .env.example .env

Install dependencies and run using nodemon

npm install
npm run watch

Frontend

Install dependencies and start dev server

npm install
npm run start