teresa-m-knowles / little_shop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Store64

'Store 64' is a fictitious e-commerce platform consisting of users, merchants, and admins. Site visitors can log in as a User, Merchant, or Admin. Users and visitors can add items to a cart. Users can 'checkout' their cart to create an order. Merchants can fulfill items in an order, and admins can access functionality of both users and merchants.

Prerequisites

  • Requires PostgreSQL database

Getting Started

Clone the repo on your local machine from your terminal

git clone https://github.com/plapicola/little_shop.git

Enter the newly created directory and run bundle install and bundle update

cd little_shop
bundle install
bundle update

Create, migrate, and seed the database

rake db:{create,migrate,seed}

Launch a local server with rails s

rails s

Navigate to 'localhost:3000' in your internet browser

Visit 'localhost:3000' in your internet browser

localhost:3000

Once you reach the site you can access login, registration, and other visitor functionality via the navigation bar at the top of the screen.

Navigation Bar

Useful Features

You can log in as a default admin with the following credentials:

email: admin@gmail.com password: 'password'

Login information for various other users and merchants can be found in the db/seeds.rb file as seen below:

Login Data

New users can be created through the 'Register' link in the navigation bar.

Admins can upgrade normal users to merchants via the user's profile page. They can also downgrade merchants to regular users via the merchant's dashboard page.

Database Visualization

Database Visualization

How to Test

Store64 uses RSpec for testing. To run the full test suite, simply run 'rspec' from the terminal.

rspec

Individual tests can be run by specifying the desired file path and line number. For example,

rspec spec/models/item_spec.rb:65

will run the item model test that is found in that file on line 65.

Built With

Authors

About


Languages

Language:Ruby 85.5%Language:HTML 13.8%Language:JavaScript 0.4%Language:CSS 0.3%