This is the main API for all the BecauseOfProg. It's an interface to interact with users, posts and to use authentification on other websites.
First, install Python 3.7 or higher, and install the dependencies like below.
Install pipenv using pip and, with it, install the dependencies : pipenv install
.
Use pip to install the dependencies listed in the requirements.txt
file.
If you use Pipenv, enter in your virtual environment : pipenv shell
.
Configure the environment variables :
FLASK_APP
: path to main.pyFLASK_ENV
: "development"
Edit the configuration in config-sample.json
, and rename this file to config.json
.
Run the API using flask run
.
Install the flup
package. Then, edit the api.fcgi
file to add path to Python folder, and the socket file that will be generated. Finaly, run the file and connect the socket on your web server !
If you use Pipenv, be careful to precise the path to the virtual environment !
- Maintainer: Théo Vidal (exybore)
GNU GPL v3. See the license file.