A mini e-commerce application built with Rails 4.2 for purposes of teaching Rails by example.
- Fork & Clone
- Run
bundle installto install dependencies - Create
config/database.ymlby copyingconfig/database.example.yml - Create
config/secrets.ymlby copyingconfig/secrets.example.yml - Run
bin/rake db:resetto create, load and seed db - Create .env file based on .env.example
- Sign up for a Stripe account
- Put Stripe (test) keys into appropriate .env vars
- Run
bin/rails s -b 0.0.0.0to start the server - Open browser and go to
http://localhost:3000/
- Shows sold out badge when an product quantity is 0
- Only Admin can do the following (after admin authentication):
- List and create new categories
- List and add new products using into a category
- Change the quanitiy of a product
- User sign up, login, and authentication on certain pages
- Visitors can browse any page
- Shows order summary after checking out
- Email of order summary will be sent after checkout
- (User only) Can write reviews, rate a product, and delete own review
Use Credit Card # 4111 1111 1111 1111 for testing success scenarios.
More information in their docs: https://stripe.com/docs/testing#cards
- Rails 4.2 Rails Guide
- PostgreSQL 9.x
- Stripe







