Skip to content

DPinto-dev/jungle-e-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jungle

Mini e-commerce application built with Rails and Stripe

Jungle is a full-stack Rails app made to mimic a real e-commerce app. With complete CRUD operations implemented, users can register, login, logout, add items to their cart, and use Stripe to make simulated purchases. Admins can view a dashboard with information about customers and products, as well as add and remove items, categories, and sales to and from the database.

Table of contents

Usage

Jungle

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need Ruby and Rails installed, specifically Ruby 2.3.5x and Rails 4.2.x.

Installing and Running

  1. Run bundle install to install dependencies
  2. Create config/database.yml by copying config/database.example.yml
  3. Create config/secrets.yml by copying config/secrets.example.yml
  4. Create .env by copying example and providing an elephantsql database URL
  5. Run bin/rake db:reset to create, load and seed db
  6. Sign up for a Stripe account
  7. Put Stripe (test) keys into appropriate .env vars
  8. Run bin/rails s -b 0.0.0.0 to start the server

NOTE: You may need to add ruby infront of binstub commands

Running the Tests

Use Credit Card # 4111 1111 1111 1111 for testing success scenarios.

More information in their docs: https://stripe.com/docs/testing#cards

To run the tests:

bin/rspec

Built with

Contributing

  1. Fork it (https://github.com/DPintoLL/jungle-e-commerce/fork)
  2. Create your feature branch (git checkout -b feature/fooBar) or issue branch (git checkout -b issue/brokenThing)
  3. Commit your changes (git commit -m 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new PR

Meta

Diogo Pinto – diogopinto.devdiogosmp@gmail.com

Known issues / bugs

  • Bugs? What bugs?

To add an issue, start a new one here.

Feature roadmap

In the works

  • Deploy
  • Have sales properly affect prices, accounting for multiple simultaneous sales

Planned

  • More tests
  • Auto fill forms based on logged in user data
  • Restyle

If you'd like to add a feature yourself, please see the Contributing guidelines.

Acknowledgements

  • This was done as a project for Lighthouse Labs

About

An e-commerce Rails app built with Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published