An expense tracking web application built using Flask and SQLAlchemy that allows users to add, view, and manage their expenses.
- Add new expenses with a description and category.
- View a list of all expenses.
- Manage and track expenses with a user-friendly interface.
- Backend: Python, Flask, SQLAlchemy
- Frontend: HTML, CSS
- Database: SQLite (or upgradeable to other databases such as PostgreSQL or MySQL)
- Python 3.x
- Git
- Virtualenv (optional, but recommended)
-
Clone the repository:
git clone https://github.com/jithinjithu10/Expense-Tracker.git
-
Navigate to the project directory:
cd Expense-Tracker
-
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
-
Set up environment variables (if needed):
Create a
.env
file and add the following:FLASK_APP=app FLASK_ENV=development SECRET_KEY=your_secret_key
-
Initialize the database:
flask shell from app import db db.create_all() exit()
-
Run the application:
flask run
The application will be available at http://127.0.0.1:5000/
.
Expense-Tracker/
│
├── app/
│ ├── __init__.py # Initializes the Flask app and database
│ ├── models.py # Defines database models
│ ├── routes.py # Application routes (views)
│ ├── static/ # Static files (CSS, images, etc.)
│ └── templates/ # HTML templates
│
├── venv/ # Virtual environment (if created locally)
├── requirements.txt # List of dependencies
├── .gitignore # Ignored files and folders for git
└── README.md # This file
- Fork the repository.
- Create your feature branch (
git checkout -b feature/my-feature
). - Commit your changes (
git commit -m 'Add my feature'
). - Push to the branch (
git push origin feature/my-feature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.