Skip to content

LongTangGithub/fit-track

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

568 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitness Tracker

Codacy BadgeCD - Application

Table of Contents

Prerequisites

  • 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

Setup

  1. Clone the repository.

    git clone https://github.com/robinsonianr/fit-track.git
  2. Navigate to the project UI directory.

     `cd fit-track-ui/react`
  3. Install node package dependencies.

    npm install
  4. 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 ps to see if the container is running; if not, run docker start fit-db.

    • In IntelliJ or preferred DB manager, add datasource to database tool by entering the URL jdbc:postgresql://localhost:5432/fit-tracker and add user and password.

    • After successfully connecting to db, add schema to the db called fit_tracker.

Build

Here's how you can build and run application

Build and run application manually

  1. 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)
  2. Start UI change directory with cd fit-track-ui/react
    npm run start

Or

Start application using Docker container

Change directory to the root of the project

cd [location of project]

Then run start script

MacOS

sh start-fit-track.sh

WSL

./start-fit-track.sh

Output should look like this: Screenshot 2026-03-31 183037

Access fit-track locally at http://localhost:5173

Development Url:

Test Account Credentials:

Contributing

We welcome contributions from the community to contribute to this project. Please follow these guidelines:

  1. Fork or clone the repository to your local machine.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and test them thoroughly.
  4. Submit a pull request and fill out the PR template with details of changes.

About

Fit-Track is a personal fitness tracker that turns workouts + habits into clear progress, decisions, and next steps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 61.0%
  • Java 29.4%
  • CSS 4.2%
  • MDX 2.7%
  • JavaScript 1.2%
  • Bru 0.9%
  • Other 0.6%