The backend of the Habit Tracker App, built using Spring Boot and MySQL, is designed to provide a robust API to handle habit tracking, user authentication will be added in next, and data persistence. This backend supports all basic CRUD operations and integrates seamlessly with the frontend.
- CRUD Operations for managing habits
- Database Integration with MySQL
- RESTful API with all necessary endpoints to manage habits
- User Authentication will be add next (Signup, Login, JWT-based authorization)
- Secure and efficient handling of user data
- Optimized code for performance
- Backend: Spring Boot (Java)
- Database: MySQL
- Authentication: JWT (JSON Web Tokens)
- Build Tool: Maven
habit-tracker-backend/
βββ src/
β βββ main/
β βββ java/
β β βββ com/
β β βββ Nk/
β β βββ habittracker/
β β βββ controller/
β β βββ model/
β β βββ repository/
β β βββ service/
β β βββ security/
β βββ resources/
β βββ application.properties
βββ pom.xml
- **controller/**: Contains REST controllers for handling API requests
- **model/**: Entity classes (representing database tables)
- **repository/**: Interfaces for database CRUD operations
- **service/**: Business logic layer
- **security/**: JWT authentication utilities
---
## π§ Setup and Installation
### Prerequisites
- **JDK 17 or later**
- **MySQL**
- **Maven**
## π Progress & Future Features
- Add more security features (role-based access control)
- Implement habit streak tracking
- Integrate email notifications for daily reminders