|
@@ -45,12 +45,34 @@ In bonus you can also uses the 'login.py' script to speed up the devloppement of
|
|
|
|
|
|
## How to build the source code
|
|
|
|
|
|
+### Using Makefile
|
|
|
+
|
|
|
+Debian:
|
|
|
+
|
|
|
+```bash
|
|
|
+git clone https://gitea.com/chopin42/simple-forum
|
|
|
+cd simple-forum
|
|
|
+make debian
|
|
|
+make run
|
|
|
+```
|
|
|
+
|
|
|
+Fedora:
|
|
|
+
|
|
|
+```bash
|
|
|
+git clone https://gitea.com/chopin42/simple-forum
|
|
|
+cd simple-forum
|
|
|
+make fedora
|
|
|
+make run
|
|
|
+```
|
|
|
+
|
|
|
+### From scratch
|
|
|
+
|
|
|
1. Install the depedencies
|
|
|
|
|
|
Debian:
|
|
|
|
|
|
```bash
|
|
|
-sudo apt install python3 python3-pip
|
|
|
+sudo apt install python3 python3-pip git
|
|
|
pip3 install -r requirements.txt --user
|
|
|
```
|
|
|
|
|
@@ -61,6 +83,13 @@ sudo dnf install python3 python3-pip
|
|
|
pip3 install -r requirements.txt --user
|
|
|
```
|
|
|
|
|
|
+2. Download the source code:
|
|
|
+
|
|
|
+```bash
|
|
|
+git clone https://gitea.com/chopin42/simple-forum
|
|
|
+cd simple-forum
|
|
|
+```
|
|
|
+
|
|
|
2. (Optional) Change the template to fit your needs
|
|
|
3. Run the main file:
|
|
|
|