Skip to content

A lightweight web app for tracking workouts, monitoring fitness metrics, and visualizing activities on an interactive map.

Notifications You must be signed in to change notification settings

Rafael-Silverius/Workout-Planner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏋️‍♂️ Workout Logger

A web-based workout planner and logger that helps users track their running and cycling activities. Built with PHP, MySQL, HTML, CSS, JavaScript, and Leaflet.js for an interactive map experience.

🚀 Features

  • 🗺️ Display map centered on user's current location.
  • 📍 If location is denied, show a default location.
  • ✍️ Log running and cycling workouts with distance, duration, cadence, and elevation gain.
  • 👤 User authentication (Login/Register).
  • 📈 Track user's daily steps.
  • 🔔 Prompt users to complete profile (like setting height) if missing.
  • 🧠 Smart error handling and location request retrying.

🛠️ Tech Stack

  • Frontend: HTML, CSS, JavaScript, Leaflet.js
  • Backend: PHP
  • Database: MySQL
  • Other Libraries:
    • Toastify.js (notifications)
    • Leaflet.js (maps)

🧑‍💻 How to Run Locally

  • Clone the repository:
  • Set up a local server:
    • Use XAMPP / MAMP / WAMP.
    • Place project inside /htdocs (for XAMPP).
  • Create MySQL database:
    • Import the provided database.sql file (if available).
    • Update backend/config.php with your DB credentials.
  • Run the app:
    • Visit http://localhost/workout-planner/public/ .

⚙️ Environment Variables

You might need to configure:

  • DB_HOST
  • DB_USER
  • DB_PASSWORD
  • DB_NAME
All settings are inside backend/config.php.

✨ Future Improvements

  • 📱 Make it fully responsive for mobile.
  • 🎯 Add goal tracking (e.g., 5K run goal).
  • 🏆 Implement badges/achievements.
  • 🧩 Export workouts to CSV or JSON.
  • 🧠 Improve error handling and offline support.

🙌 Acknowledgements

  • Leaflet.js
  • Toastify.js
  • OpenStreetMap

📜 License

This project is licensed under the MIT License — feel free to use, modify, and distribute it!

📬 Contact

Feel free to reach out if you have suggestions or questions:

GitHub: Rafael Walder

Email: rafaelwalder99@gmail.com

About

A lightweight web app for tracking workouts, monitoring fitness metrics, and visualizing activities on an interactive map.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published