Website repo for the Kent Hack It CTF
The frontend uses ReactJS that communicates to a ExpressJS backend that handles: user login/registration, team creation/joining, and flag submission.
# if you do not have NodeJS installed
sudo apt update && sudo apt install nodejs npm# installs dependencies/packages tracked by this project
npm install .
# compile and run the frontend locally
npm startMove the web related .env file into the project root directory, then run the following to run the backend locally.
nodejs backend/server.mjsThis project uses Docker 🐳 for production set-up
docker-compose became deprecated within latest versions of Ubuntu and some python packages have became deprecated
> Jump to Latest Docker Compose
sudo apt update && sudo apt install docker.io docker-composeThe following commands will build the docker via compose which builds the multi-docker system.
You will need to move the .env into the project root folder before running the following:
docker network create traefik
docker-compose --env-file .env -p khi -f docker/docker-compose.yml up --build- Follow install instructions from Install Documentation
If the command docker compose version does not work go to the releases page and find correct version
curl -SL https://github.com/docker/compose/releases/download/v2.39.2/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-composePrepare and run Docker container
docker compose --env-file .env -p khi -f docker/docker-compose.yml up --build