- Tested on
Python 3.8.3
- Python Packages:
src/requirements.txt
. - OS Packages: PostgreSQL version 11 or greater,
libpq-dev
,python3-dev
packages. Please refer here.
- Git clone the repo and
cd
into it
$ git clone https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework
$ cd RTB-CTF-Framework/
- Create
virtual environment
to deal with dependencies and requirements.
$ virtualenv -p /usr/bin/python3 venv
$ source venv/bin/activate
$ cd src/
- With
virtual environment
activated, install requirements, init db,
[venv]$ pip install -r requirements.txt
[venv]$ export FLASK_APP="FlaskRTBCTF:create_app()"
[venv]$ chmod +x init_db.sh && ./init_db.sh # Only required on first run
-
Now we can run our application,
- For development server,
[venv]$ python run.py
- Production server
[venv]$ ./runserver.sh