- Install node (version 8.x.x)
npm install
npm run make
We use Python3.
- Install virtualenv
- Create a virtualenv (outside the project directory)
cd ~
mkdir envs
cd envs
virtualenv codegame
- Activate virtualenv
source ~/envs/codegame/bin/activate
. To deactivate, simplydeactivate
. - Install packages inside virtualenv.
cd <repo_dir>/web
pip3 install -r requirements.txt
- To initialise the database, ensure virtualenv is activated then run:
cd <repo_dir>
./db_create.py
- Ensure virtualenv is activated.
- In
web/
directoryFLASK_APP=__init__.py FLASK_DEBUG=1 flask run
The debug flag is optional but is useful for testing / debugging. - Open server pages in browser!