Skip to content

Python Flask web application for booking sabre lessons

Notifications You must be signed in to change notification settings

smiley1983/lesson_booking_site

 
 

Repository files navigation

Simple Lesson Booking site

This is a simple Python Flask web application for booking sabre lessons, styled using TailwindCSS and with a few additional packages to help make life easier for future upgrades, such as flask-migrate.

  1. Make a new directory and initialise venv:

python3 -m venv .venv source .venv/bin/activate which python

  1. Clone the repository using git clone.
  2. pip install -r requirements.txt
  3. Create a .env file in the project root with the key:pair APP_SECRET_KEY = "". You can generate your secret key by running the following command in the terminal: python -c 'import secrets; print(secrets.token_hex())'
  4. Initialise the db migration: flask db migrate
  5. Upgrade the database: flask db upgrade
  6. Install Tailwindcss
  7. Compile Tailwindcss file: npx tailwindcss -i ./app/static/src/style.css -o ./app/static/css/main.css
  8. Run program: python main.py

For the local version, the code will automatically make the first user you register into an admin. Then you can administer the database via flask-admin by browsing to the /admin/ route in your browser.

About

Python Flask web application for booking sabre lessons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • HTML 0.3%
  • CSS 0.2%
  • PowerShell 0.1%
  • Shell 0.0%
  • Mako 0.0%