Skip to content

A Full-Stack web application developed using Ruby on Rails with SQLite3 database. Created RESTful APIs and routing for shopper and administrator login accounts..

Notifications You must be signed in to change notification settings

shr1611/Online_Shopping_Cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Online_Shopping_Cart

A Full-Stack web application developed using Ruby on Rails with SQLite3 database. Created RESTful APIs and routing for shopper and administrator login accounts..

Online Store using Ruby with Rails

Developed and Submitted by: Shruti Jagadeesh Bhat, CSE Grad Student, Santa Clara University

Layout: Left side of the page has all the products displayed for the shopper as well as the admin. Right side of the page shows a column for carts and other links: HOME, ADMIN pages, both of which require admin authentication.


Two User credentials are loaded in the application currently: Username: bronco Password: bronco

Username: shruti Password: shruti


To run the application:

  1. Open terminal at the main assignment folder "OnlineStoreRailsApp" and run the following command:

rails server

  1. A Puma server starts running at the port mentioned. (Most likely it will be localhost:3000 )

  2. Go to the browser, run localhost:3000

There are two views:

View1: Shopper view

The default page is "shopper's catalog page"

  1. The products can be added to cart using "Add to Cart" button.

  2. Click on check out will take you to a new page, "New order form". Fill in the details and click "Place Order". It will create the order redirect to the shopper page with a success message.

View2: Admin View

Both HOME and ADMIN views require login authentication. Use the credentials mentioned above to login. These links can take you to the respective views: "ORDER" link The above order can be viewed in "ORDERS" in the right side column.Click "ORDERS" to view the list of all the orders.

"PRODUCTS" link This page shows the Admin view for the same products. It has options "Show, Edit and Destroy".

"USERS" link This shows all the admin users added to the site, who can access the admin view.

Logout leads back to the Shopper view.

About

A Full-Stack web application developed using Ruby on Rails with SQLite3 database. Created RESTful APIs and routing for shopper and administrator login accounts..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published