This repo is the Front End portion of the Bīk-n-Brü project built by Mod 3 students at Turing School of Software and Design.
The purpose of this project is to encourage people to ride their bikes to bars to decrease their carbon footprint by gamifying the exercise/bar experience.
Visit our Bīk-n-Brü Website! Hosted on Heroku!
Also check out the Bīk-n-Brü Back End GitHub Repo
- Learning Goals
- Planning Documents
- Tech & Tools Used
- How to Set Up
- How to Run Test Suite
- Use of Bīk-n-Brü
- Contributors
- Continue to gain competency with Ruby on Rails Fundamentals
- Use Bootstrap to create a user-friendly experience
- Implementing OAuth log-in feature
- Consuming API's for user and activity information, to store in the back-end Application
- Planning and excecuting web application from idea to conception
- Testing asynchronous front-end API calls to OAuth provider and back-end application to external API's
- Pry
- Faraday
- Orderly
- Capybara
- Figaro
- Webmock
- VCR
- Launchy
- RSpec
- Simple-Cov
- Factory Bot for Rails
- Faker
- Shoulda Matchers
- Bootstrap
- Fork and clone this repository
- cd into the root directory
- Run
bundle install
- Run
bundle exec figaro install
- Run rails
db:{create,migrate}
- To run this server, run
rails s
in your terminal - To stop the local server, use command
Control + c
-
In config > application.yml
strava_client_id: <client_id> strava_client_secret: <client_secret>
After set up:
- Run
bundle exec rspec spec
-
The landing page is home base. You will see a current user leaderboard with stats about that user and login options:
-
If you do not currently have a Strava account, choose that option. You will be directed to the Strava website and asked to set up an account.
-
Once you have signed up for a Strava account, return to the landing page to sign in using Strava OAuth.
-
You will use OAuth through your Strava account to utilize the Bīk-n-Brü site.
-
Once you are logged in using the Strava OAuth, you will be redirected to your dashboard page.
-
From your landing page you have access to many features, including:
-
Creating an Activity: To create a new activity you would use you choose the brewery that you went to, your beverage of choice and click the button to "Tell me how many beers I've earned".
-
The index of breweries around your location: click on the "View All Local Breweries" link and you will be taken to the breweries index page.
-
-
The navigation bar appears on all pages, allowing you to return to your home page, dashboard or logout at any time.
Amanda Ross |
Yuji Kosakowski |
Rich Kaht |
Gabe Nuñez |
Annie Pulzone |
Mike Dao |