Skip to content

RubyRailers Prototype Review#247

Open
paolacalle wants to merge 69 commits intodeadroxy:masterfrom
paolacalle:gelocation
Open

RubyRailers Prototype Review#247
paolacalle wants to merge 69 commits intodeadroxy:masterfrom
paolacalle:gelocation

Conversation

@paolacalle
Copy link

No description provided.

paolacalle and others added 30 commits September 14, 2023 00:30
payment amount forgotten column
adding changes from master
added some ux changes to user, membership + navbar
@paolacalle
Copy link
Author

wonderful

paolacalle

This comment was marked as off-topic.

@paolacalle paolacalle closed this Nov 20, 2023
@paolacalle paolacalle reopened this Nov 20, 2023
@paolacalle paolacalle changed the title Gelocation RubyRailers Prototype Review Nov 21, 2023
@paolacalle
Copy link
Author

Environment configuration: 👍

  1. Clone the repo: RAILERS SUPER REPO
  2. Open terminal and navigate to the directory where you want to clone this repo in
  3. Run git clone https://github.com/paolacalle/valetbike
  4. Run bundle install
  5. Run rails db:migrate
  6. Run rake db:import_stations["notes/station-data.csv"]
  7. Run rake rake db:import_bikes["notes/bike-data.csv"]
  8. Run rails assets:precompile

Prototype’s functionality: 🥇

Session

To access any other cool features of the sites, you are required to either login or create an account. For logging in, the form does basic data validations. For user creation, the form and model do basic data validation and also assures that that email address does not already exist in the User database.

Station

Once in, you have the choice to create a new rental or look at your history of rentals. You can also click on user to look at your account (will contain more information like when you account was created, types of membership, etc) or logout. If you decide to create a new rental, you are shown a table of all available stations. You can filter the data in two ways, manually search for an address of a station or click on near me. The near me station, asks you to allow your browser to pass down you geo-coordinates which is then used to filter out the stations 1 miles distance from you. You can also manually update this.

Bike

Once you select your location and station, you are taken to page with all the docked bikes at that station. You are then prompted to select a bike. Once you have selected your bike, you are taken to Create Rental page.

Rental

The user can have one rental at a time. They currently have to simply press on “Return Bike” to end the rental on the list of rentals. (Soon you will also be able to make a future rental, but having trouble with the autoincrement not working, so for now, you may make another account to make a second rental). The view of the rentals has been updated to show all rentals sorted by the rental id. When renting a bike, the user can enter the date and the number of hours and minutes that they want to rent the bike for, and the user can view past rentals. Soon the website will generate the return by time to show the user when to return the bike, and the user will be able to return a bike to the specified station.

Flash

Intentionally not incorporated into our color scheme, are the flashes of Success, Notice, Alert, and Error, so that they stand out in their differentiated colors (green, blue, yellow, and red respectively) to the user’s eye.

Payments (under development)

There are three membership options that are connected to Stripe Api - one day pass, monthly membership, and yearly membership. Users can pay with a card through Stripe to purchase a membership that allows them access to bike rentals for a day, month or year at a time. The payment system does not work yet at all but maybe someday soon. The products are built in the Stripe dashboard, and are connected to ValetBike using their price_id. As of now, purchasing a product does not result in a user having a membership, but hopefully this will happen soon. ValetBike developers are working diligently and mind-numbingly to figure out how to connect the Stripe subscription to a ValetBike user through handling webhooks events.

Recommended walkthrough: 🔢

  1. Start by creating a user by selecting create account and entering your information (or fake information)
  2. To see error messages, leave fields blank or do not include the “@” symbol in your email address
  3. Select new rental from the nav bar, check out the sorting capabilities, and then select the station you want to rent from and then the bike you want to rent
  4. Enter the rental period of hours you want to rent for, you can also enter hours and minutes but that is not currently required, and the date
  5. Select new payment and then enter a (fake) credit card number that is 16 digits long and how much you want to pay, and then hit Create Payment
  6. From here you can check out your past rentals through the nav bar as well as the home page which has some fun links to check out related to our development process
  7. When you are finished browsing, log out using the options in User

💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants