Skip to content

Raj040404/expense-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Expense Tracker (MERN Stack)

Overview

An Expense Tracker application built using the MERN (MongoDB, Express.js, React, Node.js) stack. This app helps users track their income and expenses with an intuitive interface and real-time updates.

Features

  • User authentication (JWT-based login/register)
  • Add, edit, and delete expenses/income
  • Categorize transactions
  • View expense history
  • Interactive dashboard with charts
  • Responsive design

Tech Stack

  • Frontend: React, Redux Toolkit, Tailwind CSS
  • Backend: Node.js, Express.js
  • Database: MongoDB, Mongoose
  • Authentication: JSON Web Tokens (JWT)

Installation

Prerequisites

Ensure you have the following installed:

  • Node.js (latest stable version)
  • MongoDB (local or cloud-based Atlas instance)

Setup

  1. Clone the repository:

    git clone https://github.com/your-username/expense-tracker-mern.git
    cd expense-tracker-mern
  2. Install dependencies:

    # Backend
    cd backend
    npm install
    # Frontend
    cd ../frontend
    npm install
  3. Setup Environment Variables: Create a .env file in the backend directory and add:

    MONGO_URI=your_mongodb_connection_string
    JWT_SECRET=your_secret_key
    PORT=5000
  4. Run the application:

    # Start backend server
    cd backend
    npm start
    # Start frontend server
    cd frontend
    npm start

API Endpoints

Authentication

  • POST /api/auth/register - Register a new user
  • POST /api/auth/login - Login user

Transactions

  • GET /api/transactions - Get all transactions
  • POST /api/transactions - Add a new transaction
  • PUT /api/transactions/:id - Update a transaction
  • DELETE /api/transactions/:id - Delete a transaction

Screenshots

Dashboard

License

This project is licensed under the MIT License.

Contributors

Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published