This is the backend for the ExpenseTracker application. It provides RESTful APIs for managing users and expenses.
- User registration and authentication
- Expense CRUD operations
- JWT-based authentication middleware
- MongoDB database integration
backend/
├── controllers/
│ ├── expense.controller.js
│ └── user.controller.js
├── db/
│ └── db.js
├── middleware/
│ └── isAuthenticated.js
├── models/
│ ├── expense.model.js
│ └── user.model.js
├── routes/
│ ├── expense.router.js
│ └── user.routes.js
├── index.js
├── package.json
├── .env
├── .gitignore
- Clone the repository
- Install dependencies:
npm install - Set up your
.envfile with MongoDB URI and JWT secret - Start the server:
npm start
/api/users- User operations/api/expenses- Expense operations
MIT