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.
Home page
Product page
Cart
Order confirmation page / Admin login
Admin - products
- From the root directory, install dependencies (
bundle install
). - 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 the database. - Create
.env
file based on.env.example
. - Sign up for a Stripe account.
- Put Stripe (test) keys into appropriate .env vars.
- Repeat steps 7 and 8 with Mailgun.
- 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 Stripe's docs: https://stripe.com/docs/testing#cards
- Fork & Clone
- 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
- 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