Skip to content

quhairfoir/jungle-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jungle

Jungle is a mini e-commerce application. 💳

Jungle displays a list of products which can be purchased. Products are created by an administrator and placed into a category. Any user can then view the products, add them to a cart, and proceed to checkout with Stripe using a credit card. Order confirmations are sent out to clients using Mailgun. If users decide to register an account, they may also leave a review and rating of a given product.

This app was built using Rails.

Final Product

Home page

"home"

Product page

"product"

Cart

"cart"

Order confirmation page / Admin login

"order"

Admin - products

"admin-products"

Getting Started

  1. From the root directory, install dependencies (bundle install).
  2. Create config/database.yml by copying config/database.example.yml.
  3. Create config/secrets.yml by copying config/secrets.example.yml.
  4. Run bin/rake db:reset to create, load and seed the database.
  5. Create .env file based on .env.example.
  6. Sign up for a Stripe account.
  7. Put Stripe (test) keys into appropriate .env vars.
  8. Repeat steps 7 and 8 with Mailgun.
  9. 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 Stripe's docs: https://stripe.com/docs/testing#cards

Dependencies

Setup

  1. Fork & Clone
  2. Run bundle install to install dependencies
  3. Create config/database.yml by copying config/database.example.yml
  4. Create config/secrets.yml by copying config/secrets.example.yml
  5. Run bin/rake db:reset to create, load and seed db
  6. Create .env file based on .env.example
  7. Sign up for a Stripe account
  8. Put Stripe (test) keys into appropriate .env vars
  9. 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

About

An e-commerce Rails app built for learning Rails through example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 69.3%
  • HTML 27.0%
  • CSS 2.7%
  • JavaScript 1.0%