Monster Shop is a fictitious e-commerce platform, driven by MVC design and ReSTful conventions using Rails and PostgreSQL. This application allows for three types of users with different CRUD functionalities specific to their roles using authentication methods: regular users, merchant employees and an admin role with pieces of all functionality. Our application was built over 9 days and covered 54 user stories while using Test-Driven Development. You can check out the starter repo and associated users stories here.
Check Out our Live Site on Heroku
Login as different users using these credentials:
Regular User
jamesp@gmail.com
password
Merchant Employee
fake.gmail@gmail.com
password1
Admin
admin@example.com
admin
Testing Status:
- SimpleCov - 100% Coverage
- RSpec - 223 Tests, 0 failures
ActiveRecord Associations
Namespaced Routes
ActiveRecord Queries
- Would have liked to refactor the routes better to use more resources syntax and namespacing.
- We noticed that any type of user, including a visitor, could delete or edit a review. Although not in our user stories, we would have liked to change this functionality so that reviews also belonged to users and only that user or an admin could change their reviews.
- We would have also liked to develop the ability for an admin to change a user role from regular user to merchant and vice versa. This could also include functionality for an application process for a regular user to submit to become a merchant and some sort of user validation for them to become a merchant.
You can check out our Monster Shop! Follow these steps in your command line:
Clone this repo: git clone git@github.com:katemorris/monster_shop_2005.git
Install & update gems:
bundle install
bundle update
Get your database goin':
rails db:{drop,create,migrate,seed}
See our tests run:
bundle exec rspec
Environment Requirements
Check your versions by running rails -v
and ruby -v
- Rails 5.2.4
- Ruby 2.5.3
Gems
capybara
- Application testing and interactionshoulda-matchers
- Simplifies testing syntaxbcrypt
- Password Encryptionfactorybot
- Seed data creation for testingfaker
- Creates fake info for seed data
- Joshua Carey (he/him)
- Kate Tester (she/her)
- Shaunda Cunningham (she/her)
- Taylor Phillips (he/him)