Skip to content

Files

Latest commit

 

History

History
34 lines (25 loc) · 729 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 729 Bytes

TDDD97

This repo contains the laborations in the course TDDD97 done by Gustav and Oliver.

How to run the code

  1. Clone the repository and open the TDDD97 directory in your bash terminal.

  2. Create and run a python virtual environment using venv

python3 -m venv venv
source venv/bin/activate
  1. Install the required python packages using pip install
pip install -r requirements.txt
  1. Create the database using sqlite3 and the file schema.sql.
sqlite3 database.db < schema.sql
  1. Run the server with gunicorn
gunicorn -b 0.0.0.0:5000 --workers 1 --threads 100 server:app
  1. Use a web browser of your choice and go to localhost port 5000
localhost:5000/