You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Create `virtual environment` to deal with dependencies and requirements.
29
+
30
+
```bash
24
31
$ virtualenv -p /usr/bin/python3 venv
25
32
$ source venv/bin/activate
33
+
$ cd src/
34
+
```
35
+
36
+
3. With `virtual environment` activated, install requirements, init db and run !
37
+
38
+
```python
26
39
[venv]$ pip install -r requirements.txt
40
+
[venv]$ python create_db.py # Only required on first run
27
41
[venv]$ python run.py
28
42
```
29
43
30
44
Using this as simple as anything. Just configure your CTF settings in [`config.py`](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/blob/master/src/FlaskRTBCTF/config.py).
31
45
46
+
> Note: DO NOT FORGET to change admin credentials from [create_db.py]((https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/blob/master/src/create_db.py)
47
+
32
48
#### Creating database instance file
33
49
34
-
Locally or for docker,
50
+
Locally or for docker/linux server,
35
51
36
52
```bash
37
53
$ source venv/bin/activate
38
-
$ python3 # open python interpreter
39
-
>>> from FlaskRTBCTF import db, create_app
40
-
>>> db.create_all(app=create_app())
54
+
$ python src/create_db.py
41
55
```
42
56
57
+
> Running this also creates an admin account by default,
58
+
43
59
For Heroku,
44
60
45
61
```bash
@@ -50,15 +66,15 @@ $ heroku run python
50
66
51
67
## To-do
52
68
53
-
-[ ]isAdmin column in User table and Admin views (priority)
69
+
-[ ]db relationship between User and Score Tables
54
70
-[ ] Support for more hashes
55
71
-[ ] Testing Password reset functionality
56
72
-[ ] Notifications
57
73
-[ ] More info for `home.html`
58
74
-[ ] Need to implement `account.html` (not a priority)
59
75
60
76
<hr/>
61
-
77
+
-[x] isAdmin column in User table and Admin views (priority)
0 commit comments