- Java 17+ (Liberica or Zulu) compatible & uses Gradle 7.6.1
- Node.js 18+
- For Windows haved WSL installed if starting application with docker containers
- Recommended IDE IntelliJ
-
Clone the repository.
git clone https://github.com/robinsonianr/fit-track.git
-
Navigate to the project UI directory.
`cd fit-track-ui/react` -
Install node package dependencies.
npm install
-
Database setup
- Install Docker Desktop and enable Docker terminal in the settings then restart Docker Desktop.
In Docker terminal or WSL run the following command below.
docker run -d --name fit-db \ -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=root1234 \ -e POSTGRES_DB=fit-tracker \ -p 5432:5432 \ --restart always \ postgres:15-alpine
-
Run
docker psto see if the container is running; if not, rundocker start fit-db. -
In IntelliJ or preferred DB manager, add datasource to database tool by entering the URL
jdbc:postgresql://localhost:5432/fit-trackerand add user and password. -
After successfully connecting to db, add schema to the db called
fit_tracker.
- Build and run the application.
- Build and run the application (recommend Intellij but can use your preferred IDE).
- In root of project run
.\gradlew build(If using an IDE other than Intellij) - Then run application
.\gradlew run(If using an IDE other than Intellij)
- Start UI
change directory with
cd fit-track-ui/reactnpm run start
- Open a web browser and navigate to http://localhost:5173.
Or
Change directory to the root of the project
cd [location of project]Then run start script
MacOS
sh start-fit-track.shWSL
./start-fit-track.shAccess fit-track locally at http://localhost:5173
Development Url:
Test Account Credentials:
- Email: test123@gmail.com
- Password: Test123
We welcome contributions from the community to contribute to this project. Please follow these guidelines:
- Fork or clone the repository to your local machine.
- Create a new branch for your feature or bug fix.
- Make your changes and test them thoroughly.
- Submit a pull request and fill out the PR template with details of changes.
