Skip to content

eamouzou/monster_shop_final

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monster Shop

An online, e-commerce application for an easier and more convenient shopping experience.

Background and Description

"Monster Shop" is a fictitious e-commerce platform where users can register to be able to place items into a shopping cart and 'check out'. Users who work for a merchant can mark their items as 'fulfilled'; the last merchant to mark items in an order as 'fulfilled' will automatically set the order status to "shipped". Each user role will have access to some or all CRUD functionality for application models.

Many-to-Many and One-to-Many Relationships

  • This project utilizes both one-to-many and many-to-many relationships, connecting multiple tables in our database for an easier user experience.

image

Access

Start shopping online, hassle-free, by visiting https://pacific-falls-62721.herokuapp.com/

Work on this project yourself!

-To get started, please visit https://github.com/meghanstovall/monster_shop_1911 and clone this project to your local machine!

-Once you are on the site, look for the green 'Clone or Download' button on the right side of the web page.

Next, copy the SSH Key after you have pressed the green 'Clone or Download' button.

Screen Shot 2020-02-25 at 11 42 13 AM

Then, go to the directory in your temrinal where you would like this project to be. Type in 'git clone' and the paste the copied SSH key in to your terminal before pressing enter.

Screen Shot 2020-02-25 at 11 48 02 AM

You can now move in to the project directory and open it from your text editor.

User Roles for Monster Shop

  1. Visitor - this type of user is anonymously browsing our site and is not logged in. You will be able to visit parts of the site and view both merchants and their products to see if there is anything that interests you.

However, before you are able to checkout with any merchandise, you will need to register as a new user.

Screen Shot 2020-02-25 at 12 15 31 PM

When registering, fill in all the fields with your information and remember, your email address must be unique!

Using a unique email allows us to register and view our profile page.

  1. Regular User - Great! Now you are a registered user! This user is registered and logged in to the application while performing their work; can place items in a cart and create an order!

  2. Merchant Employee - this user works for a merchant. They can fulfill orders on behalf of their merchant. They also have the same permissions as a regular user (adding items to a cart and checking out).

However, they can only edit their merchant's items!

  1. Admin User - a registered user who has "superuser" access to all areas of the application; user is logged in to perform their work! They are able to manipulate information that is restricted to others on the site.

Rails

  • Create routes for namespaced routes
  • Use Sessions to store information about a user and implement login/logout functionality
  • Use BCrypt to hash user passwords before storing in the database
  • Use filters (e.g. before_action) in a Rails controller

image

  • This functionality limits user access depending on their user role.

Application Resources

  • Uses Rails 5.1.x
  • Uses PostgreSQL
  • Uses 'bcrypt' for authentication
  • Controller and model code was be tested via feature tests and model tests, respectively
  • Created using good GitHub branching, team code reviews via GitHub comments, and use of the project planning tool, github projects

Permitted

  • To use FactoryBot to speed up your test development
  • To use "rails generators" to speed up your app development

Permission

  • If there is a specific gem you'd like to use in the project, please get permission from the creators first.

Contributors and links to their Github Repositories:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages