Live Demo: https://mahendrachowdary-007.github.io/Expense-Tracker/
GitHub repo: https://github.com/MahendraChowdary-007/Expense-Tracker
A full-stack expense tracking application built with Node.js, Express, MongoDB, and React.
expense_tracker/
├── backend/
│ ├── src/
│ │ ├── config/
│ │ │ └── db.js
│ │ ├── controllers/
│ │ │ ├── auth.controller.js
│ │ │ └── expense.controller.js
│ │ ├── middleware/
│ │ │ └── auth.middleware.js
│ │ ├── models/
│ │ │ ├── user.model.js
│ │ │ └── expense.model.js
│ │ ├── routes/
│ │ │ ├── auth.routes.js
│ │ │ └── expense.routes.js
│ │ ├── utils/
│ │ │ └── generateToken.js
│ │ └── server.js
│ └── package.json
├── frontend/
│ ├── public/
│ │ └── index.html
│ ├── src/
│ │ ├── App.js
│ │ └── index.js
│ └── package.json
└── README.md
cd backend
npm install
.env file in the backend directory with:
PORT=5000
MONGO_URI=mongodb://localhost:27017/expense_tracker
JWT_SECRET=your_secret_key
npm run dev
cd frontend
npm install
npm start
The frontend will run on http://localhost:3000 and the backend on http://localhost:5000.
POST /api/auth/register - Register a new userPOST /api/auth/login - Login userPOST /api/expenses - Add a new expense (requires auth)GET /api/expenses - Get user’s expenses (requires auth)M.Mahendra Chowdary