granda (Polish for fracas) is a web application for Oxford Debate tournament management.
To deploy via Docker:
- Prepare the following directory structure:
.
├── granda-front # cloned from this repository
└── tau # cloned from https://github.com/debatecore/tau
- From the level of
tau, run:
docker build -t tau:latest .
This is to provide a backend image (we are planning on providing it via Github Container Registry in the future).
- Set up an
.envfile and place it ingranda-front.
You may use this example and adjust it to your needs:
# Backend setup (for documentation refer to https://github.com/debatecore/tau?tab=readme-ov-file#environment-setup)
DOCKER_DB_PASSWORD=THISISAVERYSECUREDBPASSWORD
DOCKER_DB_ROOT_PASSWORD=ANOTHERSECUREROOTPASSWORD
DATABASE_URL=postgresql://tau:tau@db-prod:5432/tau
SECRET=SUPERSECRETSTRINGHERE
FRONTEND_ORIGIN=http://localhost:3000
# Frontend setup
BACKEND_URL=http://server-prod:2023 # Used for server-side requests
FRONTEND_PORT=3000 # Port with the frontend to be exposed
BACKEND_PORT=2023 # Port with the backend to be exposed
- From the level of
granda-front, run:
docker compose --profile prod up -dOnce the containers are built and started, you can access the application from http://localhost:3000 (or other address, depending on your FRONTEND_PORT variable).
First, set up the backend either using above deployment instructions or those found in the backend repository.
Then, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.