A platform to allow users to analyzes bike share usage in San Francisco. By consuming historical data from CSV's users are able to view a wide range of metrics for bike stations within the Bay area.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Ensure you have rails installed, if not:
gem install rails
To get up and running in your browser clone this repo
Install the dependenices
bundle install
Create the database
rails db:create
Run the migrations
rails db:migrate
Start the server
rails server
Visit localhost:3000 in your browser to start exploring information for stations
Install the dependencies
bundle install
Run rspec
rspec
Each test ensures working functionality for a particular user story.
it "they can create a new station" do
visit "/stations/new"
fill_in "station[name]", with: "Paddington"
fill_in "station[dock_count]", with: "100"
fill_in "station[installation_date]", with: "8/6/2013"
fill_in "station[city]", with: "London"
page.find("#btn_submit").click
expect(current_path).to eq("/stations")
expect(page).to have_content("Paddington")
expect(page).to have_content("100")
end
Version 1.0
This project is licensed under the MIT License