Skip to content

hacksu/kent-hack-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kent-Hack-It

Website repo for the Kent Hack It CTF

What is this?

The frontend uses ReactJS that communicates to a ExpressJS backend that handles: user login/registration, team creation/joining, and flag submission.

💻 Development Installation

🔨 Install Dependencies

# if you do not have NodeJS installed
sudo apt update && sudo apt install nodejs npm

🔧 Build

# installs dependencies/packages tracked by this project
npm install .
# compile and run the frontend locally
npm start

Move the web related .env file into the project root directory, then run the following to run the backend locally.

nodejs backend/server.mjs

📈 Production

This 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-compose

The 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

How to use docker compose on latest Ubuntu installs:

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-compose

Prepare and run Docker container

docker compose --env-file .env -p khi -f docker/docker-compose.yml up --build

About

Website repo for the Kent Hack It CTF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages