For developing the webapplication as part of the project for DIS.
Assumes a working Python 3 installation (with python
=python3
and pip
=pip3
).
Also assumes that a PostgreSQL database has been created
-
Open terminal and navigate to solution-folder
-
Create virtual environment
python -m venv venv
-
Activate virtual environment
.\venv\Scripts\activate
-
Install dependencies in the virtual environment
pip install -r requirements.txt
-
Database initialization
- Set the database name and user in the
helpers/db.py
- Run
db_setup.py
python db_setup.py
- Set the database name and user in the
-
Run wep-app
python app.py
Now the application is running, and you can open http://localhost:5000/ in a browser
For more information about interacting with the website, read the guide