Skip to content

Flask backend for an app for reserving seats at an event

License

Notifications You must be signed in to change notification settings

mungujn/pick-a-seat-backend-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pick a seat backend (Python)

Build Status

Backend for a web app for reserving seats. The web apps code and a live demo is available here.

The backend is built around the flask microframework. Unlike the Node.js backend, here the single exposed endpoint is more 'REST' like.

GET '/table/{table-number}' returns a JSON object with occupancy details of the table specified by table-number

PUT '/table/{table-number}' updates a tables occupancy details.

Running the project

  • Install the requiremnts
  • Create a firebase project in case you want to use the code as is. i.e if you want to use the cloud firestore database. Otherwise replace the database logic in the common/database.py file with the logic for whatever persistance store you want to use.
  • Test using pytest

About

Flask backend for an app for reserving seats at an event

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages