Git Product home page Git Product logo

bike-share's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bike-share's Issues

4 - Trips - Controller

/trips - be able to view the first 30 trips organized by date. Arrows to go the next 30 and the previous 30.

/trips/:id
/trips/new
/trips/:id/edit

add delete CRUD functionality

4 - Models

Duration
Start Date
Start Station
End Date
End Station
Bike ID
Subscription Type
Zip Code - zip code is not required as it is user input

4 - Views

/trips . when a user visits /trips they get first 30 results, with arrows to check the next 30 - then if they did go to the next 30 results, they could go back the previous 30 results. Organized by date. This will be controlled by through the controller.

/trips/:id
/trips/new
/trips/show
/trips/:id/edit

3 - Build model methods for dashboard

They include:
Average docks per station
Largest number of docks at a station
Station with the largest number of docks
Fewest number of docks at a station
Station with the fewest number of docks
Most recently installed station
Oldest station

3- Build dashboard

Setup /station_dashboard route in controller. Build view that displays info from model methods

6 - Add analytics to show page

Number of rides started at this station.
Number of rides ended at this station.
Most frequent destination station (for rides that began at this station).
Most freuqnet origination station (for rides that ended at this station).
Date with the highest number of trips started at this station.
Most frequent zip code for users starting trips at this station.
Bike ID most frequently starting a trip at this station.

1 - Write controller tests

That requires moving all the expect(current_path).to eq tests (Currently in feature tests) into controller tests

2- Read from CSVs

Populate DB from csv files. Will involve using CSV library to read file and Station.create + City.create from each row.

0 - Show pages

Every time you visit a show page, you should have the ability to navigate to other show pages depending on that pages information.

6 - Build model analytics for dashboard

Average duration of a ride.
Longest ride.
Shortest ride.
Station with the most rides as a starting place.
Station with the most rides as an ending place.
Month by Month breakdown of number of rides with subtotals for each year.
Most ridden bike with total number of rides for that bike.
Least ridden bike with total number of rides for that bike.
User subscription type breakout with both count and percentage.
Single date with the highest number of trips with a count of those trips.
Single date with the lowest number of trips with a count of those trips.

0 - Update specs to be consistent with object creation

Good:
city = City.create(name: 'Denver')

city.stations.create(lat: 37.329732, long: -121.90178200000001, name: 'Turing Station', dock_count: 12, installation_date: Date.parse("8/6/2013"))

Bad:
city = City.create(name: 'Denver')

station = Station.create(lat: 37.329732, long: -121.90178200000001, name: 'Turing Station', dock_count: 12, city_id: 1, installation_date: Date.parse("8/6/2013"))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.