Python-based Flask web server app for Billing management. This application includes CSV, HTML/CSS, and Python files.
Here is a GIF demonstration of the application:
- Introduction
- Features
- Prerequisites
- Installation
- Configuration
- Running the Application
- Usage
- Project Structure
- License
This project is a billing management system built using Python and Flask. It allows users to manage billing information, including customer details, purchased items, and payment denominations.
- Add customer details
- Add purchased items
- Calculate total amount paid based on denominations
- Generate and print bills
- Store billing information in a database
Before you begin, ensure you have the following installed:
- Python 3.x
- pip (Python package installer)
- Git (optional, for version control)
-
Clone the repository:
git clone https://github.com/Sva-Dagger cd Mallow-Technologies-Task -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.envfile in the root directory and add the following configuration:SECRET_KEY=your_secret_key DATABASE_URL=sqlite:///billing.db -
Ensure the data directory exists for storing CSV files:
mkdir -p data
-
Place your
products.csvfile in the data directory.
-
Initialize the database:
flask db init flask db migrate flask db upgrade
-
Run the Flask application:
flask run
-
Open your web browser and navigate to
http://127.0.0.1:5000to access the application.
- Add Customer Details: Enter the customer's email ID.
- Add Purchased Items: Select products and enter quantities.
- Calculate Denomination: Enter the count for each denomination and click "Calculate Denomination".
- Generate Bill: Click "Generate" to create and print the bill.
