A RESTful backend API for tracking personal expenses built using Spring Boot.
- Java
- Spring Boot
- Spring Security
- JWT Authentication
- MySQL
- Maven
Controller → Service → Repository → Database
- User registration and login
- Password reset via email
- JWT authentication
- Create expense
- View expenses
- Delete expenses
- Pagination
- Filtering by category/date
- Admin panel
- Expense categories management
- Export expenses to CSV/PDF
POST /api/auth/register POST /api/auth/login POST /api/auth/forgot-password POST /api/auth/reset-password
POST /api/expenses/expenses POST /api/expenses/add PUT /api/expenses/update/{id} DELETE /api/expenses/delete/{id}
GET /api/dashboard/summary
Clone the repository
git clone
Update the following properties in application.properties before running the application:
- Database credentials
- JWT secret
- Email configuration
Example:
spring.datasource.username=your_db_username spring.datasource.password=your_db_password jwt.secret=your_secret_key
Run the project
mvn spring-boot:run
Server will run on