The web application is build with python Flask framwork along with SQLite3 database. It has basic login system since the booking have to be done with authentication. A admin account is created by default, with username: admin, and password: admin. The administrator have the access to directly manipulate team and users.
- Install flask and packages
$ pip install flask
$ pip install flask-wtf
$ pip install flask-sqlalchemy
$ pip install flask-migrate
$ pip install flask-login
- Define the project
$ export FLASK_APP=lab2.py
- Init the database
$ flask db init
- Run the migration command from the project directory to create tables
$ flask db upgrade
- Populate the database with dummy data(if weren't populated after migration)
$ python populate.py
- Run the flask application from the project directory, running on localhost
$ flask run
- Open the app in browser: localhost