- MySQL (version >= 8.0.28) (MariaDB)
- Python (version >= 3.8.10)
- Python Virtual Environments
On Ubuntu libmysqlclient-dev is required
sudo apt install python3-dev libmysqlclient-dev
Create a Virtual Environments (venv)
python3 -m venv venv
Move into Virtual Environments workspace
. venv/bin/activate
Install all python packages
python -m pip install -r requirements.txt
All configuration files are found in the .config directory.
default.ini is the default configuration file.
To set up Database and API, copy the template files "example.default.ini" and rename to "default.ini"
cp .config/example.default.ini .config/default.ini
setup.ini is the access configuration file.
To set up access, copy the template files "example.setup.ini" and rename to "setup.ini"
cp .config/example.setup.ini .config/setup.ini
products.ini is the products configuration file.
To set up products, copy the template files "example.products.ini" and rename to "products.ini"
cp .config/example.products.ini .config/products.ini
New products are fetched from the product info.json file and added to the database the first time the server starts. Each product is an object in the info.json file and it's metadata contains:
- name = The name of the Product
- label = The Display name for the Product
- description = The Product's description
- documentation = The Product's documentation
python3 server.py
python3 server.py --logs=debug
<host>:<PORT>/<VERSION>/api-docs/