A mini e-commerce application built with Rails 6.1 for purposes of teaching Rails by example.
This is the admin page where you can manage products and categories.
This is the cart page where you can view and manage your shopping cart.
This is the filter page where you can filter products by category.
This is the header section of the website.
This is the login page where users can log in to their accounts.
This is the payment page where users can make payments using Stripe.
This is the payment success page displayed after a successful payment.
This is a product page displaying product details.
This is the signup page where users can create a new account.
- 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 .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.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.
More information in their docs: https://stripe.com/docs/testing#cards
- Rails 6.1 Rails Guide
- Bootstrap 5
- PostgreSQL 9.x
- Stripe