Getting Started
Philip Bierley
Getting Started
This guide will help you set up and run the Fitness Tracker application.
Prerequisites
- PHP 8.2 or higher
- Composer
- Node.js and npm (optional, for frontend assets)
- Docker (optional, for containerized deployment)
Installation
Option 1: Local Development
Clone the repository
git clone https://github.com/Pbierley/FitnessTracker.git cd FitnessTracker/fitness-tracker-laravelInstall dependencies
composer installRun the setup script
bash run.shThis will:
- Create
.envfile from.env.example - Generate application key
- Run database migrations
- Start the development server
- Create
Access the application
Open http://localhost:8000 in your browser.
Option 2: Docker
Clone the repository
git clone https://github.com/Pbierley/FitnessTracker.git cd FitnessTracker/fitness-tracker-laravelBuild and run containers
docker compose up --buildAccess the application
Open http://localhost:8000 in your browser.
First Steps
- Register an account - Click “Create Account” and enter your email and password
- Create a workout - Add workout types like “Bench Press” or “Squats”
- Log a session - Record your sets, reps, and weights
- Track your weight - Add body weight entries to track progress
Project Structure
fitness-tracker-laravel/
├── app/
│ ├── Http/Controllers/Api/ # API Controllers
│ └── Models/ # Eloquent Models
├── database/
│ ├── migrations/ # Database migrations
│ └── database.sqlite # SQLite database
├── public/
│ └── index.html # Frontend application
├── routes/
│ └── api.php # API routes
├── run.sh # Local development script
├── setup.sh # Docker setup script
├── Dockerfile
└── docker-compose.yml