Website for hosting my CTF challenges.
Live server at https://awr-uwin-ctf.vercel.app
Uses Next.js with Mantine UI and Prisma ORM
Generated from Next.js + Mantine template
Note: These steps are only for developers cloning this repo. You do not need to do this to use the deployed site.
- Node.js
- Yarn package manager
- Git
# 1. Clone the repo
git clone https://github.com/awrreny/ctf-platform.git
cd ctf-platform
# 2. Install dependencies
yarn
# 3. Create environment file (you will need to read through this and configure it to make it work)
cp .env.example .env
# 4. (Optional, to add your own challenges)
cp prisma/chal-seed-data-example.json prisma/chal-seed-data.json
# 5. Initialise database (make sure you are still in ctf-platform/)
yarn prisma generate
# change 'dev' to 'deploy' if in production
yarn prisma migrate dev
yarn prisma db seed
# 7. Run the development server
yarn dev