Please give a read to this Wiki
Firstly, clone the repository from github by running the following command:
git clone https://github.com/iiitv/CTF-Backend.gitEnter the working directory by running the following command:
cd CTF-BackendInstall the required dependencies by running the following command:
npm installCreate a file named .env in the config folder of the root directory. This file will store the environment variables. Do not commit this file or remove it from gitignore when pushing to github.
| Variable | Description |
|---|---|
PORT |
Port number to run the server on |
DATABASE_URL |
Connection string of the database |
Run the following command to start the server:
npm start