Installation¶
Bug
Not tested for Windows.
General Information and useful links
If you find some bugs don't hesitate to mail at Hochschule Nordhausen
FastAPI: Documentation
Django Framework: Documentation
General¶
- Install
- Download the Github Repository
- Navigate to your designated project folder
- Download the repository for the website using
- Download the repository for external simulation images using
- Navigate into the backend folder (
cd ensys-backend
) - Run the build script
- on Mac/Linux:
bash build.sh
- on Windows:
- on Mac/Linux:
Following...¶
Example .env-File
# postgres settings
POSTGRES_DB=EnSys
POSTGRES_USER=ensys_pg
POSTGRES_PASSWORD=ensys_pg
POSTGRES_HOST=db
POSTGRES_PORT=5432
# pgadmin settings
PGADMIN_DEFAULT_EMAIL=admin@hs-nordhausen.de
PGADMIN_DEFAULT_PASSWORD=rootroot
PGADMIN_PORT=9005
# django settings
DJANGO_PORT=20001
DJANGO_DEBUG=False
SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=$POSTGRES_DB
SQL_USER=$POSTGRES_USER
SQL_PASSWORD=$POSTGRES_PASSWORD
SQL_HOST=$POSTGRES_HOST
SQL_PORT=$POSTGRES_PORT
EMAIL_SENDER=<mail adress>
EMAIL_HOST_IP=<mail server>
EMAIL_HOST_USER=<mail adress user>
EMAIL_HOST_PASSWORD=<mail adress password>
# api settings
LOCAL_WORKDIR=<path to your ensys-gui folder>
LOCAL_DATADIR=$LOCAL_WORKDIR\data\simulations
GUROBI_LICENSE_FILE_PATH=D:\Github\ensys-gui\gurobi_mvs.lic
# proxy settings
PROXY_PORT=9004
The LOCAL_WORKDIR is the path to the folder in which the data is to be stored.
- Follow general steps
- Navigate into the ensys-gui folder (
cd ensys-gui
) - Create the required .env file (example s. above)
- Create a Virtual Environment
- Start FastAPI
- Start Django
- Open your Browser and visit Local Website
- You can then login with
testUser
andASas12,.
or create your own account
- Follow general steps
- Open Project in PyCharm
- Create the required .env file (example s. above)
- Use the Run-Configurations which are saved in the project folder
- "Backend.run.xml" for the FastAPI-Backend
- "Frontend.run.xml" for the Django-Frontend
- "Offline.run.xml" Compound-run for Backend and Frontend
- "compose.run.xml" for Docker Compose deployment
- Run the configuration "Offline"
- Open your Browser and visit Local Website
- You can then login with
testUser
andASas12,.
or create your own account
- Follow general steps
- Install Docker
- Navigate in the project folder
- Create the required .env file (example s. above)
- Type
- Wait until completion
- Open your Browser and visit Local Website
- You can then login with
testUser
andASas12,.
or create your own account