About the Project
The project is designed to manage mystrom devices in an easy interface.
Prerequisites
- >= python3.8
Installation
- Clone the repo
git clone https://github.com/maexled/mystrom-django-interface.git
cd mystrom-django-interface/
- Install needed python libraries
pip install -r requirements.txt
Database migrations
python manage.py makemigrations
python manage.py migrate
Run App
python manage.py runserver
Run with docker
docker run \
--name mystrom-interface \
-p 8000:8000 \
-e DB_NAME=db-name \
-e DB_USER=username \
-e DB_PASSWORD=password \
-e DB_HOST=host \
-e DB_PORT=port \
-e SECRET_KEY=secretKey \
-e ALLOWED_HOSTS=localhost,mysite.com \
-e CORS_ORIGIN_ALLOW_ALL=False \
-e CORS_ORIGIN_WHITELIST=http://localhost:8000,http://mysite.com \
-e TZ=Europe/Berlin \
ghcr.io/maexled/mystrom-django-interface
Configurations
Important things to know
Database configuraton in pim/settings.py
under DATABASES