Jungle is a mini e-commerce application built on Ruby and Rails. Users can sign up, log in, and add or purchase items using Stripe for secure transactions. Behavior-Driven-Development was used with testing being done via Rspec, Capybara, and Poltergeist.
- Products are listed on the homepage
- Users can add/remove/adjust quantity of items from the Cart
- Admins can add/edit/remove existing categories or products via the Admin dashboard
- Items out of stock are marked as 'Sold Out'
- Encrypted passwords via bcrypt
Front-End: Ruby, Jquery-Rails, SCSS
Back-End: Rails, PSQL
Testing: Rspec, Capybara, Poltergeist, Phantom
Home Page routes to all products
Example of sorting by category Registration Page A loaded Cart The Confirmed Order page Categories control page via Admin Dashboard Rspec/Capybara example spec
- 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 file based on .env.example
- If you do not wish to use/test e-commerce capabilities, skip ahead to step 8
- 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
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