The webserver has been build with django and provides a way for users to hire bikes.
the project has the following dependencies:
clone this repository
git clone https://github.com/PenO3-CW2B2/webapp
rename the example.settings.py
to settings.py
and edit the following settings:
- ALLOWE_HOSTS
- HOST_PREFIX (see commend)
- DATABASES
- DEFAULT_FROM_EMAIL
create the migrations for the bikes
python manage.py makemigrations bikes
apply the migrations to the database
python manage.py migrate
You can test the server by running it locally
python manage.py runserver
and you should be able to access it on http://127.0.0.1:8000
for installation on an ulyssis server with (Fast)CGI see this.
Note: When using an appache server you should add CGIPassAuth On
to the htaccess file.
Otherwise the custom header Authorization
will not be passed to django.