A full stack personal expense tracker built with the MERN stack. Track your daily expenses, categorize spending, and monitor your total spend — all behind a secure JWT-authenticated account.
Live Demo → https://spendwise-three-sigma.vercel.app/signup
- Secure signup and login with JWT authentication
- Add expenses with title, amount, category, and date
- View all your expenses in a clean dashboard
- See total amount spent at a glance
- Delete expenses instantly
- User-specific data — each user only sees their own expenses
- Responsive design with dark mode support
Frontend
- React.js
- React Router DOM
- Axios
- CSS (custom minimal design)
Backend
- Node.js
- Express.js
- MongoDB with Mongoose
- JWT (jsonwebtoken)
- bcrypt
Deployment
- Frontend → Vercel
- Backend → Render
- Database → MongoDB Atlas
- Node.js
- MongoDB Atlas account
Clone the repo:
git clone https://github.com/NikhilT97/spendwise.git
cd spendwiseBackend setup:
cd backend-expenseTracker
npm installCreate a .env file:
MONGO_URI=your_mongodb_atlas_connection_string
SECRET_KEY=your_jwt_secret
EXPIRES_IN=1d
PORT=5000
Start the backend:
node server.jsFrontend setup:
cd frontend
npm install
npm run devUpdate src/config.js with your backend URL:
const BASE_URL = "http://localhost:5000";
export default BASE_URL;| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/signup | Register new user |
| POST | /auth/login | Login and get JWT token |
| GET | /auth/profile | Get logged in user profile |
| Method | Endpoint | Description |
|---|---|---|
| POST | /expenses | Add new expense |
| GET | /expenses | Get all user expenses |
| DELETE | /expenses/:id | Delete an expense |
Nikhil Tayde
- GitHub: @NikhilT97
- LinkedIn: https://www.linkedin.com/in/nikhiltayde97/
