/FitTrack

An application that allows user to track his diet and activities. It'll also provide insights by analyzing data.

Primary LanguageJava

FitTrack

A microservice architecture application that helps you track your activities and meals. You can track your calorie intake and calories burnt during each activity. It also gives nutrional information about the food you tracked.

Architecture

Architecture diagram

Database Schema

Database Schema

How to run

  1. Clone the repository to local.
  2. Paste username, password to a text file. (Refer to sample files in /creds).
  3. Paste nutritionix api key, id in another text file. (Refer to sample files in /creds).
  4. Update absolute path of these files in application.properties of both the services.
  5. Spin up the database.
  6. Run Exercise logger microservice (Will run on port 8081).

.\mvnw clean install

.\mvnw spring-boot:run

  1. Run FoodLogger using the same commands (Will run on port 8080).
  2. For API endpoint documentation, refer to Swagger UI.

How to test

To run the unit tests and integration tests after making changes, run

.\mvnw test