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.git
Enter the working directory by running the following command:
cd CTF-Backend
Install the required dependencies by running the following command:
npm install
Create 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