Jungle Rails
A mini e-commerce application built with Rails 4.2.
- Front-End: Bootstrap, Sass
- Back-End: Rails, PostgreSQL
- Test: Capybara, Poltergeist, RSpec
Main Features
- Admin users can create categories, products, and sales
- Logged in users can rate & review a product
- Vistors (and all users) can place an order
- Email reciept is sent after placing an order (See http://0.0.0.0:3001/rails/mailers/user_mailer/order_confirmation for a preview)
Screenshots
Home Page
Product Page
My Cart Page
Setup
- Run
bundle install
to install dependencies - Create
config/database.yml
by copyingconfig/database.example.yml
- Create
config/secrets.yml
by copyingconfig/secrets.example.yml
- Run
bin/rake db:reset
to create, load and seed db - Create
.env
by copying.env.example
- Set your admin username and password in .env.example
- Sign up for a Stripe account
- Put Stripe (test) keys into appropriate .env vars
- Run
bin/rails s -b 0.0.0.0
to start the server
Stripe Testing
Use Credit Card # 4111 1111 1111 1111 for testing success scenarios.
More information in their docs: https://stripe.com/docs/testing#cards
Dependencies
- Rails 4.2
- PostgreSQL 9.x
- Stripe