Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.01 KB

File metadata and controls

37 lines (27 loc) · 1.01 KB

python-base-billing-system

This is a minimal Python-based billing system with a simple, attractive web UI built with Flask and Bootstrap.

Quick start

  1. Create a virtual environment and install dependencies:
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
  1. Seed the database and run the app:
python seed.py
python app.py

Open http://127.0.0.1:5000 in your browser.

If you'd like enhancements (PDF invoices, user auth, nicer styles), tell me which features to prioritize.

Email and attachments

  • To enable sending emails from the app, set these environment variables before starting the server:
setx SMTP_HOST "smtp.example.com"
setx SMTP_PORT "587"
setx SMTP_USER "your-smtp-user"
setx SMTP_PASS "your-smtp-password"
setx SMTP_FROM "your@company.com"

If SMTP is not configured the app will print the email to the server console instead of sending.

Attachments uploaded from the order page are stored in uploads/<invoice_id>/ and served by the app.