Skip to content

Abdul-Moez/Expense-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Expense Tracker - Laravel Project

This is an expense tracker application based on PHP framework Laravel.

Getting Started

Follow these steps to set up the project on your local machine.

Step 1: Clone the Repository

In XAMPP:
Go to your 'htdocs' folder and open CMD there and clone the repository.

In Laragon:
Go to your 'www ' folder and open CMD there and clone the repository.

git clone https://github.com/Abdul-Moez/Expense-Tracker.git
cd Expense-Tracker/expt_lvl

Step 2: Install Composer Dependencies

Use Composer to install the required PHP dependencies for the project. This will create the vendor folder.

composer install

Step 3: Create a .env File

Copy the .env.example file to create a new .env file, which you can customize with your environment settings.

cp .env.example .env

Step 4: Generate an Application Key

Laravel requires an application key for security purposes. Generate one with this command:

php artisan key:generate

Step 5: Configure Database Connection

Open the .env file and configure your database connection settings. Modify the following variables according to your database setup:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password

Step 6: Run Migrations and Seed the Database

Run the following commands to create the database schema:

php artisan migrate

Step 7: Start the Development Server

Launch the Laravel development server to run the application locally:

php artisan serve

The application will be accessible at http://localhost:8000 in your web browser.

To Do

  • Allow user to add sources separately
  • Allow user to export data in .pdf and .xlsx format
  • Allow user to edit their profile
  • Allow user to reset their password

License

This project is open-source and available under the MIT License.