-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update to conform with flake8/PEP8 | #47 * Update README.md * Create CODE_OF_CONDUCT.md (#51) * 1. psf/black formatting with travis checks, 2. adjust docs, create CONTRIBUTING.md, 3. helper fns for creating admin pass and secret key by itself on run create admin pass and secret key by itself on run * Update README.md * Update CONTRIBUTING.md * create admin pass and secret key by itself on run * better docs * fix pwd truncation
- Loading branch information
Showing
8 changed files
with
110 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Installation / How To Use | ||
|
||
### Requirements | ||
|
||
* Tested on `Python 3.8.2` | ||
* Python Packages: [`src/requirements.txt`](src/requirements.txt). | ||
* OS Packages: PostgreSQL version 11 or greater, `libpq-dev`, `python3-dev` packages. Please refer [here](https://tutorials.technology/solved_errors/9-Error-pg_config-executable-not-found.html). | ||
|
||
### Build locally and run | ||
|
||
1. Git clone the repo and `cd ` into it | ||
|
||
```bash | ||
$ git clone https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework | ||
$ cd RTB-CTF-Framework/ | ||
``` | ||
2. Create `virtual environment` to deal with dependencies and requirements. | ||
|
||
```bash | ||
$ virtualenv -p /usr/bin/python3 venv | ||
$ source venv/bin/activate | ||
$ cd src/ | ||
``` | ||
|
||
3. With `virtual environment` activated, install requirements, init db and run ! | ||
|
||
```bash | ||
[venv]$ pip install -r requirements.txt | ||
[venv]$ python create_db.py # Only required on first run | ||
[venv]$ python run.py | ||
``` | ||
|
||
> Warning: If you make any change to [`config.py`](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/blob/master/src/FlaskRTBCTF/config.py) logging/config class/score settings. It's highly recommended to create a new DB instance. | ||
### Docker | ||
|
||
> Note: The Docker support is not tested for production yet. It's recommended to use Heroku for production. | ||
```bash | ||
$ docker-compose up | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python-3.8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters