Track every penny, grow your savings.
Spend Log is a modern, full-stack web app for managing your daily expenses and income. Built with React (frontend) and Node.js/Express + MongoDB (backend), it features secure authentication, persistent storage, and a beautiful, responsive UI.
- 🔐 Authentication: Register, login, email verification, and password reset
- 💸 Expense & Income Tracking: Add, edit, and delete entries
- 🔎 Smart Filters: Filter and search by category, date, or name
- 📊 Visual Reports: Pie, bar, and trend charts with Chart.js
- 🎯 Budgeting: Set and visualize a monthly budget
- 📤 Export: Download your data as CSV or PDF
- 🌙 Dark Mode: Beautiful, accessible design for day or night
- 🛡️ Security: JWT authentication, password hashing, rate limiting, and more
- Frontend: React, Tailwind CSS, Chart.js
- Backend: Node.js, Express, MongoDB (Mongoose)
- Security: JWT, bcrypt, helmet, express-rate-limit, xss-clean
- Docs: Swagger (API docs at
/api-docs)
├── backend/ # Express API & MongoDB models
│ ├── routes/
│ ├── models/
│ ├── middleware/
│ └── server.js
├── client/ # React frontend
│ ├── src/
│ └── public/
├── assets/ # Images, screenshots
├── screencapture.gif # Demo animation
├── .gitignore
├── README.md
└── ...
git clone https://github.com/purushothaman-web/spend-log.git
cd spend-log- Go to the
backend/directory. - Copy
.env.exampleto.env.cd backend cp .env.example .env - Open
.envand fill in your values (MongoDB URI, JWT secrets, Email settings).
- Go to the
client/directory. - Copy
.env.exampleto.env.cd ../client cp .env.example .env - Update
REACT_APP_API_URLif your backend is running on a different port (default is 5000).
# Install backend dependencies
cd ../backend
npm install
# Install client dependencies
cd ../client
npm installcd backend
npm start
# or for development with auto-reload:
# npm run devcd client
npm start- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- Swagger Docs: http://localhost:5000/api-docs
- Frontend: Deploy to Netlify or Vercel
- Backend: Deploy to Render, Railway, or Heroku
- MongoDB: Use MongoDB Atlas (free tier)
- Set environment variables in your host’s dashboard (never commit secrets)
.gitignoreprotects.env,node_modules, and build files- Use strong passwords for your database and email
- Update dependencies regularly
- Never share your MongoDB URI or secrets publicly
- Swagger UI available at:
http://localhost:5000/api-docs
Contributions are welcome! Please open an issue or pull request for bug fixes, features, or suggestions.
Open an issue or discussion on the repository!
