Coder Social home page Coder Social logo

mikecm1141 / bike-share Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 12.46 MB

This application uses data provided by Kaggle to analyze bike share data in the San Francisco area. Also serves as a simple e-commerce engine to sell bike accessories.

Home Page: https://bike-share1141.herokuapp.com/

Ruby 74.46% JavaScript 0.50% CSS 1.39% HTML 23.31% CoffeeScript 0.34%

bike-share's People

Contributors

abdullaqudrat avatar andrewetobin avatar hbellows avatar mikecm1141 avatar

bike-share's Issues

Admin user visits orders index

As an admin user,
When I visit the admin dashboard,
I see a list of all orders,
I see the total number of orders for each status ("Ordered", "Paid", "Cancelled", "Completed"),
I see a link for each individual order,
I can filter orders to display by each status type ("Ordered", "Paid", "Cancelled", "Completed"),
I have links to transition between statuses

I can click on "cancel" on individual orders which are "paid" or "ordered"
I can click on "mark as paid" on orders that are "ordered"
I can click on "mark as completed" on orders that are "paid"

Visitor cart items increment

As a visitor,
When I visit "/cart",
I see my item with a quantity of 1,

When I increase the quantity,
The current page should be '/cart',
The item's quantity should reflect the increase,
The subtotal for that item should increase,
Also, the total for the cart should match that increase.

Registered user visits station show

As a registered user,
When I visit a station show,
I see the Number of rides started at this station,
I see the Number of rides ended at this station,
I see the Most frequent destination station (for rides that began at this station),
I see the Most frequent origination station (for rides that ended at this station),
I see the Date with the highest number of trips started at this station,
I see the Most frequent zip code for users starting trips at this station,
I see the Bike ID most frequently starting a trip at this station.

Admin user visits '/' to login

As an admin user,
When I visit "/",
I see a link for "Login",

When I click "Login",
I should be on the "/login" page,
I see a place to insert my credentials to login,
I fill in my desired credentials,
I submit my information,
My current page should be "/admin/dashboard",
I see a message in the navbar that says "Logged in as Admin User: SOME_USER",
I see my profile information,
I do not see a link for "Login",
I see a link for "Logout"

Visitor cart items decrement

As a visitor,
When I visit "/cart",
I see my item with a quantity of 1,

When I decrease the quantity,
My current page should be '/cart',
The item's quantity should reflect the decrease,
The subtotal for that item should decrease,
The total for the cart should match that decrease.

Registered user visits stations dashboard

As a registered user,
When I visit '/stations-dashboard',
I see the Total count of stations,
I see the Average bikes available per station (based on docks),
I see the Most bikes available at a station (based on docks),
I see the Station(s) where the most bikes are available (based on docks),
I see the Fewest bikes available at a station (based on docks),
I see the Station(s) where the fewest bikes are available (based on docks),
I see the Most recently installed station,
I also see the Oldest station.

Register User/Authenticate new user

As a visitor,
When I visit "/",
I see a link for "Login",
When I click "Login",
I should be on the "/login" page,
I see a link to "Create Account",

When I click link "Create Account",
I fill in my desired credentials,
And I submit my information,
My current page should be "/dashboard",
I see a message in the navbar that says "Logged in as SOME_USER",
I see my profile information,
I do not see a link for "Login",
I also see a link for "Logout".

Registered User Authentication

As a registered user,
When I visit "/",
I see a link for "Login",

When I click "Login",
I should be on the "/login" page,
I see a place to insert my credentials to login,
I fill in my desired credentials,
I submit my information,
My current page should be "/dashboard",
I see a message in the navbar that says "Logged in as SOME_USER",
I see my profile information,
I do not see a link for "Login",
I see a link for "Logout".

Registered user visits conditions dashboard

As a registered user,
When I visit '/conditions-dashboard',
I see the Breakout of average number of rides, highest number of rides, and lowest number of rides on days with a high temperature in 10 degree chunks (e.g. average number of rides on days with high temps between fifty and sixty degrees),
I see the Breakout of average number of rides, highest number of rides, and lowest number of rides on days with precipitation in half-inch increments,
I see the Breakout of average number of rides, highest number of rides, and lowest number of rides on days with mean wind speeds in four mile increments,
I see the Breakout of average number of rides, highest number of rides, and lowest number of rides on days with mean visibility in miles in four mile increments.

Admin user visits new admin trip

As an admin user,
When I visit admin trip new,
I fill in a form with all trip attributes,
When I click "Create Trip",
I am directed to that trip's show page.
I also see a flash message that I have created that trip.

** Zip Code is a user-provided field, and may not be present on all records. Otherwise, as with Stations, all attributes of a Trip need to be present to ensure data integrity **

Admin user visits order show page

As an admin user,
When I visit an individual order page,
I see the order's date and time,
I see the purchaser's full name and address,
I see the item's name, which is linked to the item page.
I see the quantity in this order.
I see the line item subtotal,
I see the total for the order,
I also see the status for the order.

Visitor cart add items

As a visitor,
When I visit '/cart',
I see all the bike accessories I have added to my cart,
I see a thumbnail for each accessory as well as the title and price,
I see a subtotal and quantity breakdown for each accessory,
I see a total for my cart,
After I create an account,
I visit "/cart,
I see all of the data that was there when I was not logged in.

Admin user visits '/admin/dashboard'

As an admin user,
When I visit "/admin/dashboard",
I see a link for viewing all accessories,
When I click that link,
My current path should be "/admin/bike-shop",
I see a table with all accessories (active and inactive)

Each accessory should have:

A thumbnail of the image
Description
Status
Ability to Edit accessory
Ability to Retire/Reactivate accessory

Visitor cart remove items

As a visitor,
When I visit "/cart"
And I click link "Remove" next to an accessory,
My current page should be "/cart",
I see a flash message,
The message should say "Successfully removed SOME_ACCESSORY from your cart.",
The flash message should contain a link to that accessory in case the user wants to add it back,
I also should not see the accessory listed in my cart.

Registered user visits trips dashboard

As a registered user,
When I visit '/trips-dashboard',
I see the Average duration of a ride,
I see the Longest ride,
I see the Shortest ride,
I see the Station with the most rides as a starting place,
I see the Station with the most rides as an ending place,
I see Month by Month breakdown of number of rides with subtotals for each year,
I see the Most ridden bike with total number of rides for that bike,
I see the Least ridden bike with total number of rides for that bike,
I see the User subscription type breakout with both count and percentage,
I see the Single date with the highest number of trips with a count of those trips,
I see the Single date with the lowest number of trips with a count of those trips.

Admin user visits edit admin trip

As an admin user,
When I visit admin trip edit,
I fill in a form with all trip attributes,
When I click "Update Trip",
I am directed to that trip's show page,
I see the updated trip's information,
I also see a flash message that I have updated that trip.

** All Attributes must be present **

Registered User Order Status

As a registered user,
When I visit '/dashboard'
And click one of my orders,
My current path should be '/orders/:id'
I see the bike accessories that I ordered broken down by subtotal and quantity,
I see the total for this order,
I see the status of this order (ordered, completed, paid, cancelled)
I see the date/time that the order was submitted,
I do not see the order of another user.

If the order was completed or cancelled,
I see a timestamp when the action took place.

Admin user visits new admin bikeshop

As an admin user,
When I visit admin bikeshop new
I can create an accessory,
An accessory must have a title, description and price,
The title and description cannot be empty,
The title must be unique for all accessories in the system,
The price must be a valid decimal numeric value and greater than zero,
The photo is optional. If not present, a stand-in photo is used. (PAPERCLIP)

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.