Skip to content

A mini e-commerce application built with Ruby and Rails 6.1

Notifications You must be signed in to change notification settings

thaian161/Jungle-Plant-Shop

Repository files navigation

Jungle Plant Shop Project

A full functionality mini e-commerce application built with Ruby and Rails 6.1. Using Active Record for database and RSpecs testing library. Admin can log in to add more products/categories to admin's dashboard. Users can sign up and log in to browse products, add products to cart and purchase with credit/debit cards.

This is my sixth project at LHL after Lotide, TinyApp, Tweeter, midterm project Bake-It-Up, and Scheduler

Final Product

Landing Page

"Landing Page"

Responsive Landing Page on Ipad

"Edit"

About Us Page

"Error"

User Sign Up Page

"Error"

User Log In Page

"Landing Page"

Products Page for user to browse

"Edit"

User's Cart

"Error"

Payment Window using Stripe API

"Landing Page"

Receipt Page after purchasing

"Edit"

Admin Products Dashboard

"Error"

Admin Adding Product

"Error"

Admin Category Dashboard

"Error"

Admin Adding Category

"Error"

Admin All Count Dashboard

"Error"

Setup

  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. Run bin/rails db:reset to create, load and seed db
  5. Create .env file based on .env.example
  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
  9. Jungle Plant Shop is available at https://localhost:3000

Database

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.

Stripe Testing

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

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

Dependencies

  • Rails 6.1 Rails Guide
  • Bootstrap 5
  • PostgreSQL 9.x
  • Stripe

Hope you enjoy the app and have a nice day :D

About

A mini e-commerce application built with Ruby and Rails 6.1

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published