The Diet Monitor App is designed to help users scan food products, track their calorie intake, and monitor their weight. The application consists of a Spring Boot backend and an iOS frontend built with Swift and SwiftUI.
dietmonitor-app/ │ ├── backend/ │ ├── src/ │ ├── pom.xml │ └── ... │ └── frontend/ └── ios/ ├── DietMonitor/ ├── DietMonoitor.xcodeproj │ └── ...
The backend is built using Spring Boot and provides API endpoints for user management, food product management, and integration with third-party APIs.
- Java 11 or higher
- Maven
-
Clone the repository:
git clone https://github.com/yourusername/calorie-tracker-app.git cd calorie-tracker-app/backend
-
Build the project:
mvn clean install
-
Run the application:
mvn spring-boot:run
-
User Management
POST /api/users/register
POST /api/users/login
POST /api/users/logout
GET /api/users/profile
PUT /api/users/profile
-
Food Product Management
POST /api/food/scan
GET /api/food/{barcode}
POST /api/food
PUT /api/food/{barcode}
DELETE /api/food/{barcode}
-
Database and Third-Party Integration
GET /api/database/check/{barcode}
GET /api/thirdparty/food/{barcode}
POST /api/database/food
GET /api/thirdparty/fetch/{barcode}
POST /api/thirdparty/save
The frontend is an iOS application built with Swift and SwiftUI. It allows users to scan barcodes, view nutritional information, and track their calorie intake and weight.
- macOS
- Xcode 12 or higher
-
Navigate to the frontend directory:
cd ../frontend/ios
-
Open the project in Xcode:
open CalorieTrackerApp.xcodeproj
-
Build and run the application on a simulator or a physical device.
We welcome contributions to the project! Please fork the repository and submit pull requests for any enhancements or bug fixes.
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/your-feature
) - Open a pull request
This project is licensed under the MIT License. See the LICENSE file for more details.
If you have any questions or suggestions, feel free to open an issue or contact me at [email protected].
Visit my website at https://habibdev.se