Single page application built during module 3 of Flatiron's Software Engineering Immersive program. This application allows the user to build workout routines from a list of predefined exercises.
- Javascript
- Bootstrap (https://getbootstrap.com/)
- Ruby on Rails
- Google Drive (https://github.com/gimite/google-drive-ruby)
- Google API (https://github.com/googleapis/google-api-ruby-client)
- Fast JSON API (https://github.com/Netflix/fast_jsonapi)
- Postgres (https://github.com/ged/ruby-pg)
- Clone the repository
- Make a copy of this Google Sheet: Exercise List
- Name the spreadsheet "flatiron_fitness_spreadsheet"
- Create a Google Project in the Google Project Console
- Instructions can be found here: Creating and Managing Projects
- Enable the Google Drive API in your new Google Project
- Click the menu icon in the top left of the window
- Click the APIs & Services option
- Click the Enable APIs and Services button at the top of the screen
- Search for and enable the Google Drive API and the Google Sheets API
- Create the client_secret.json file
- From the root Google Project page, click the credentials menu option
- Click the create credentials dropdown and select the Service Account Key option
- Select New Service Account, name your service account, select project owner as the role, leave JSON selected as the key type, then click create
- Copy the resultant file in the root directory of your repo directory as *client_secret.json
- Run
bundle install
in the terminal - Share the Exercise spreadsheet with your service account by copying the client_email value from your client_secret.json file into the Share input from the google sheet.
- From the terminal, run:
rails db:create
rails db:migrate
rails db:seed
- Run
rails s
to start the application - Navigate to http://localhost:3000