Bookshop backend written in Python / Flask
Use Pycharm for development or follow the following instruction for manual install.
- Clone the repo and
cd
into it - create a
.env
in the root of the project with the example below - create Python venv
python3 -m venv venv
- Enter venv
source venv/bin/activate
- Install dependencies
pip3 install -r requirements.txt
- Finally, run the app
python3 app/app.py
See Keycloak.md for details.
Create a .env file in the root of the project with the following values
CLIENT_ID=bookshop
KEYCLOAK_URI_SCHEME=http
KEYCLOAK_HOST=localhost:8080
KEYCLOAK_REALM=unimi
SECRET_KEY=
Generate a secure SECRET_KEY
with:
openssl rand -base64 32
See table in API.md.