A mini e-commerce application built with Rails 6.1 for purposes of teaching Rails by example.
Jungle homepage
Register for an account
Checkout process for a logged in user
Message for empty cart
Admin dashboard, with ability to add new products and categories
Admin has ability to add new categories
- Fork and clone the repository
- Run
bundle installto install dependencies - Create
config/database.ymlby copyingconfig/database.example.yml - Create
config/secrets.ymlby copyingconfig/secrets.example.yml - Run
bin/rails db:resetto create, load and seed db - Create
.envfile based on.env.example - Sign up for a Stripe account
- Put Stripe (test) keys into appropriate
.envvars - Run
bin/rails s -b 0.0.0.0to start the server
If Rails is complaining about authentication to the database, uncomment the user and password fields from config/database.yml in the development and test sections, and replace if necessary the user and password development to an existing database user.
Use Credit Card # 4111 1111 1111 1111 for testing success scenarios. Any other number will result in a failure. For expiration and CVC, use any future date and any 3 digits.
More information in their docs: https://stripe.com/docs/testing#cards
- username: "Jungle"
- password: "book"
- Rails 6.1 Rails Guide
- Bootstrap 5
- PostgreSQL 9.x
- Stripe
Run Cypress:
bin/rails cypress:open- this will run all the tests in the
specfolder.
Run all rspec tests:
bin/rspec




