Skip to content

Workout log web app with geolocation capabilities

Notifications You must be signed in to change notification settings

saintograph/FitGit

Repository files navigation

FITGIT

A PWA (Progressive Web Application) fitness app that logs location and duration of workouts. Built with React and Rails.

Installation

Please ensure Rails 5 and Ruby 2.2.2++ is installed on your machine.

  1. $ git clone https://github.com/winfredselwyn/fitgit.git
  2. $ cd fitgit
  3. $ bundle install
  4. $ cd client
  5. $ client\ npm install
  6. $ npm start
  7. $ cd ..
  8. $ env PORT=4000 rails s (the Rails server will be on localhost:4000)
  9. $ rails db:seed
  10. $ rails s
  11. $ navigate to localhost:3000

Usage

  1. after initial load, disable the rails server ( CTRL + C at the terminal ) to test PWA capabilities. The application has 2 screens :

  2. 'Main' screen with all workouts. Syncs with offline workout after refresh.

  3. 'New Workouts' screen. If a workout is started with 'START WORKOUT' and 'END WORKOUT' while offline, the data is saved and sent to the server when online.

To build the JS client, please run:

  1. $ cd client
  2. $ npm build
  3. $ cd build
  4. $ python -m http.server

That's all folks!

Credits

License

MIT

About

Workout log web app with geolocation capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published