The Daily Expense Tracker is a web-based application designed to help you manage your daily expenses efficiently. With features to add, remove, and track expenses, this application is a perfect tool to stay on top of your financial activities.
- User Authentication: Secure login and registration system.
- Add Expense: Record new expenses with details such as amount, category, and date.
- Remove Expense: Delete an expense entry from your records.
- Total Spend: View the total amount spent over a specified period.
- Expense List: View a list of all recorded expenses.
- Expense Categories: Organize expenses into categories for better tracking and analysis.
- Web server (e.g., Apache, Nginx)
- PHP 7.0 or higher
- MySQL or any other database system
- Composer (for PHP dependency management)
- Clone the repository:
git clone https://github.com/rutujaC12/daily-expense-tracker.git
- Navigate to the project directory:
cd daily-expense-tracker
- Set up the database:
- Create a database named
dailyexpense
. - Import the provided SQL file to set up the necessary tables:
source path/to/dailyexpense.sql;
- Create a database named
- Configure the database connection:
- Edit the
config.php
file to include your database credentials:<?php $con = mysqli_connect("localhost:3307","root","","dailyexpense"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error() ."; } ?>
- Edit the
- Install dependencies:
composer install
- Deploy the application:
- Move the project directory to your web server's root directory (e.g.,
/var/www/html/
). - Ensure that the web server has the necessary permissions to read/write to the project directory.
- Move the project directory to your web server's root directory (e.g.,
-
Access the application:
- Open a web browser and navigate to
http://yourdomain.com/daily-expense-tracker
.
- Open a web browser and navigate to
-
Register/Login:
- Register a new account or log in using your credentials.
-
Add an Expense:
- Navigate to the "Add Expense" section and fill out the form with the necessary details.
-
Remove an Expense:
- Go to the "Expenses" section, find the expense you want to remove, and click the delete button.
-
List All Expenses:
- Navigate to the "Expenses" section to view all recorded expenses.
This project is licensed under the MIT License - see the LICENSE file for details.