Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
server.md 1.15 KiB

Installing the server

It is recommended to use Visual Studio Code to install and use the server, but it is not necessary. In order to install the server, you will need to do the following:

Install Python.

Clone the git repository teknikattan-scoring-system.

Open a terminal and navigate to the root of the cloned project.

Install virtualenv and create a virtual environment:

pip install virtualenv
cd server
py -m venv env

Activate the virtual environment (which is done slightly differently on Windows and Linux/Mac):

On Windows:

Set-ExecutionPolicy Unrestricted -Scope Process
./env/Scripts/activate

On Linux/Mac:

source env/bin/activate

Lastly, install all project dependencies:

pip install -r requirements.txt

You should now be ready to start the server. Try it by running python main.py and navigate to localhost:5000. If everything worked as it should you should see a list of all available API calls.