Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.41 KB

File metadata and controls

32 lines (24 loc) · 1.41 KB

BarBench 🍺 Table reservation system built into a fictional pub website, developed as part of the Advanced Web Technologies module at Edinburgh Napier University (2023–24). 🌐 Live: webtech-2324-07.napier.ac.uk

Tech stack LayerTechnologyFrameworkFlask (Python)TemplatingJinja2DatabaseSQLiteDeploymentNapier University web server

Getting started Prerequisites: Python 3 + pip. bashgit clone https://github.com/12vblanco/assignment.git cd assignment pip install -r requirements.txt CommandWhat it doessource env/bin/activateActivate the virtual environmentflask --app assignment run --host=0.0.0.0 --port 5000Start the dev server at localhost:5000

Admin access Credentials are hardcoded for demonstration purposes. FieldValueUsernameAdminPasswordpassword

Known issues The deployed version has two bugs that have been fixed in the repo but not yet redeployed.

  1. Name field character limit

The booking form silently rejects names longer than 12 characters with no validation message or user feedback. 2. Custom error pages

The 404 and 500 error routes don't render on the deployed server. The routes have been corrected in the repo and will work on next deploy.

What I learned

How to structure a Flask app with blueprints and route separation Handling form data and writing to a database with SQLAlchemy The gap between a working dev environment and a live deployment — two bugs that passed local testing surfaced only on the server