A mini e-commerce application built with Rails 4.2. This was built on an existing code base provided by Lighthouse Labs, as a tool to learn Ruby and Rails during their web development bootcamp.
New features implemented include:
- automated testing with RSpec, Capybara, Poltergeist, and database-cleaner
- admin authentication, and ability to create new products and categories
- user sign-up and authentication
- order details recap
- sold-out badge
- notify user & prevent check-out for empty cart
- 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
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
- bcrypt
- Testing:
- Capybara
- Poltergeist
- database-cleaner



