Giter Site home page Giter Site logo

little_shop's Introduction

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: [email protected] 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

little_shop's People

Contributors

plapicola avatar timnallen avatar teresa-m-knowles avatar csvlewis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.