A simple Expense Tracker application that allows users to add, view, filter, and calculate total expenses.
https://drive.google.com/file/d/1xu6Jikom9qOHG3765-4xL77u2uEcVu2-/view?usp=sharing
- Add expenses with details (amount, category, date, and description).
- View a list of recorded expenses.
- Filter expenses by date and category.
- View the total expenses for a given period.
- Backend: Node.js with Express (using MongoDB/MySQL for storage).
- Frontend: React.js
POST /expenses
→ Add a new expense.GET /expenses
→ Retrieve all expenses.GET /expenses?category=Food&date=YYYY-MM-DD
→ Filter expenses.GET /expenses/total?start=YYYY-MM-DD&end=YYYY-MM-DD
→ Get total expenses for a date range.
- Clone the repository:
git clone https://github.com/satyam-02/Noise-Expense-Tracker.git cd expense-tracker/backend
- Install dependencies:
npm install
- Set up environment variables in
.env
:PORT=5000 DB_HOST=sql12.freesqldatabase.com DB_USER=sql12765941 DB_PASS=EzLMArlLXm DB_NAME=sql12765941
- Start the backend server:
node server.js
- Navigate to the frontend directory:
cd ../frontend
- Install dependencies:
npm install
- Start the frontend:
npm run dev
Ensure both backend and frontend are running:
# Start backend
cd backend && node server.js
# Start frontend (in a new terminal)
cd frontend && npm run dev
- Open
http://localhost:5173
to access the frontend. - The backend runs on
http://localhost:5000
.
Feel free to fork the project, create a feature branch, and submit a pull request!
Made with ❤️ by [Satyam]