Welcome to the HealthTracker project! This application is designed to help users track their health and fitness, including meal tracking, water intake, steps taken, and personal AI coach. It consists of a WPF front-end (MVVM architecture) and a Java Spring Boot back-end.
- Java 21
- Spring Boot (v3.4.4)
- Spring Data JPA (for database interaction)
- Lombok (for boilerplate code reduction)
- Jakarta Persistence (JPA) (for ORM-based database interactions)
- SQL Server (for database management, specified schema
dbo) - Spring Security (for user authentication and authorization)
- C# with WPF
- MVVM Pattern (Model-View-ViewModel)
- XAML (for designing the user interface)
- RelayCommand (for command binding)
- JSON API integration (for communication with the Spring Boot back-end)
These instructions will help you set up the project locally and run both the back-end API and the front-end.
Before running this project, ensure you have the following installed on your machine:
- JDK 21
- Maven (for managing dependencies)
- IDE like IntelliJ IDEA or Eclipse
- Postman (or any other API testing tool)
- SQL Server (or your preferred database system)
- Visual Studio (or your preferred C# development environment)
- .NET Core 8.0 (for running WPF applications)
Clone the entire project to your local machine:
git clone https://github.com/yourusername/HealthTracker.gitTo get the HealthTracker project up and running, follow these steps:
-
Navigate to the Backend Directory
Open your terminal or command prompt and run:cd HealthTracker/backend -
Install Project Dependencies
Install the required dependencies using Maven:mvn install
-
Set Up the Database
- Install SQL Server: If you haven't already, install SQL Server.
- Create the Database: Set up a new database for the project.
- Configure Database Connection: Open the
application.propertiesfile and update the connection settings with your database credentials.
-
Run the Backend Application
Start the Spring Boot application with:mvn spring-boot:run
-
Open the Project in Visual Studio
Launch Visual Studio and open the project folder. -
Set the API URL
Open theApp.configfile and set the correct API URL to point to your running backend application.