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.
- Usage
- Getting started
- Running the Tests
- Built with
- Contributing
- Meta
- Known issues / bugs
- Feature roadmap
- Acknowledgements
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need Ruby and Rails installed, specifically Ruby 2.3.5x and Rails 4.2.x.
- Run
bundle install
to install dependencies - Create
config/database.yml
by copyingconfig/database.example.yml
- Create
config/secrets.yml
by copyingconfig/secrets.example.yml
- Create
.env
by copying example and providing an elephantsql database URL - Run
bin/rake db:reset
to create, load and seed db - 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
NOTE: You may need to add ruby
infront of binstub commands
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
- Rails 4.2.x - Front-end framework
- Stripe - Payment API
- PostgreSQL 9.x - open source SQL database
- Bootstrap - css framework
- Capybara - end-to-end testing framework
- Fork it (https://github.com/DPintoLL/jungle-e-commerce/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) or issue branch (git checkout -b issue/brokenThing
) - Commit your changes (
git commit -m 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new PR
Diogo Pinto – diogopinto.dev – diogosmp@gmail.com
- Bugs? What bugs?
To add an issue, start a new one here.
- Deploy
- Have sales properly affect prices, accounting for multiple simultaneous sales
- 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.
- This was done as a project for Lighthouse Labs