Skip to content

MacKLess/unbelievable_books

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unbelievable Books

Epicodus Project in Ruby on Rails, December 4, 2017

By Kelsey Langlois & L. Devin MacKrell

Description

This is a mock website for an online book store. It has basic user authentication, so that only logged in users may review products, and only administrators can create, edit, and delete products.

Installation and Setup

To install on your own machine, follow the instructions below:

  • Clone this repository.
  • Run the following commands in the project root directory:
    bundle update
    rake db:setup
    rails s
    
  • Open localhost:3000 in your web browser
  • To give an account admin privileges:
    • In the project root run rails c
    • Then run:
      User.find_by(email: "[account email address]").update(admin: true)
    • The account will now have admin access to the app.

Specifications

  • Products
    • Name
    • Description
    • List_Price
    • Quantity
    • Discount
    • Featured
    • Author
  • Users
    • Name
    • email
    • Password/ Password Confirmation
  • Accounts
    • account_id
    • user_id
  • Order Items
    • order_id
    • product_id
    • quantity
    • reserved_price
  • Orders
    • account_id
    • price_total
    • status
    • Raincheck
  • Reviews
    • account_id
    • product_id
    • content

To Do:

  • Admin

    • X CRUD for products
    • X feature product(s)
    • X Price change (edit)
    • X Discount (edit product)
      • X Time discount is in effect
      • X Discount for preferred customers
    • Shipping and taxes (APIs)
    • Out of Stock order block
      • X Block on add to cart
      • Still need check when placing order
    • Customer reviews on purchased products
  • User

    • X Shopping cart (add & remove, view)
    • cleared cart upon purchase
    • X display cart total (quantity & total cost). Navbar
    • X List discounted items on site
    • Pay online (API)
    • X Sign up/ create account
    • Order history
    • X Tag products "raincheck" --> viewable in cart
    • X Ability to move raincheck items into order proper
    • X View quantity (less than ten of product)
    • Reviews (view & add)
    • X Access cart via account login
    • Confirmation email upon completed order (Mailing)
      • Confirmation email once order shipped
  • User API

    • Pay for purchases online (Stripe API)
    • Calculate cost of order in non-dollar currency (Currency Layer API)
    • Random API of our choice
  • Admin API

    • Sales tax added and calculated for shopping cart (Avalara's Tax Rate API)
    • USPS's shipping rate for a product (rate calculator API. XML not JSON. Can also use Stripe API)

Support and contact details

Please contact kels.langlois@gmail.com or ldmackrell@gmail.com with questions, comments, or issues.

Technologies Used

  • Ruby
  • Rails
  • Bootstrap
  • Devise
  • Paperclip

License

Copyright (c) 2017 Kelsey Langlois & L. Devin MacKrell

This software is licensed under the MIT license.

About

Epicodus paired week long project Rails Week 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published