The brief
I have created a treatment booking app where a user can book treatments at a nail bar. It is assumed the user is already signed in and are accessing their own portal. A customer should be able to create a Booking with a name, date, time, and Treatment. A customer should be able to see all their scheduled treatments and click through on one to edit it or cancel it.
How to run the app
-
In your terminal, create a database called 'myfirstapp'. Run command:
createdb myfirstapp
-
Within the python-project file, initialise and populate database using the pythonapp.sql file. Run command:
psql -d myfirst app -f pythonapp.sql
-
Run flask to open the app locally. Run command:
flask run
-
Open app by opening (http://localhost:4999/) in your browser, preferably in Chrome:
- Use the app to view all available treatments by clicking on 'Our Treatments' from the navigation menu:
-
Click into each treatment for more information.
-
Click 'Book' from the individual treatment page or 'Book Now' from the navigation buttons to be taken to a booking form:
- To view all bookings made, click on 'My Bookings':
-
Here you have the option to amend or cancel your booking.
-
To exit the app, end flask. Run command:
ctrl c
View presentation here: https://docs.google.com/presentation/d/1JXYMAtcFsIuy5XqlLiimWVVVQSffDHdO1wZpN2FYQJU/edit?usp=sharing