This repo contains the laborations in the course TDDD97 done by Gustav and Oliver.
-
Clone the repository and open the TDDD97 directory in your bash terminal.
-
Create and run a python virtual environment using venv
python3 -m venv venv
source venv/bin/activate
- Install the required python packages using pip install
pip install -r requirements.txt
- Create the database using sqlite3 and the file schema.sql.
sqlite3 database.db < schema.sql
- Run the server with gunicorn
gunicorn -b 0.0.0.0:5000 --workers 1 --threads 100 server:app
- Use a web browser of your choice and go to localhost port 5000
localhost:5000/