Giter Club home page Giter Club logo

littleshop's Introduction

Little Shop: Myxology

A Turing School group project created with Rails.

Myxology

We created an online application where visitors, registered users, merchants, and admins have a variety of interactions with our fictitious shop. Each user type has some degree of authentication and authorization on our site. A user must be registered before checking out, but a visitor can shop up to checkout without being registered. Merchants can fulfill orders according to their inventory. Admins have authorization to enable and disable a user, as well as upgrading or downgrading a user or merchant, along with other functionality.

Myxology

Learning Goals

  • Advanced Rails routing (nested resources and namespacing)
  • Advanced ActiveRecord for calculating statistics
  • Average HTML/CSS layout and design for UX/UI
  • Session management and use of POROs for shopping cart
  • Authentication, Authorization, separation of user roles and permissions

Getting Started && Prerequisites

You will need Rails v 5.1.

gem install rails -v 5.1

Clone down this repo!

git clone https://github.com/cebarks/littleshop

Installing

From your terminal, navigate into the little_shop directory:

cd little_shop

Make sure your gemfile is up to date:

bundle
bundle update

Establish a database:

rake db:{drop,create,migrate,seed}

Start your server:

rails s

Open your browser (best functionality in Chrome).

localhost:3000

Welcome to our dev environment!

Running the tests

Your location should be the root directory of the project (little_shop).

From the command line run rspec (This can take a moment)

Green is passing. Red is failing.

We used rspec, capybara, and shoulda-matchers for testing. We also used FactoryBot and Faker gems.

Example of a feature test:

Alt text

Example of a model test:

Alt text

MVC

This project was a huge exploration into the M(odel) V(iew) C(ontroller) software architecture pattern. We also worked with namespacing routes and authorization and authentication.

Example of a namespaced Controller:

Alt text

Example of a model:

Alt text

Example of a view:

Alt text

ActiveRecord Queries and Statistics

We worked with relational databases and queries with many to many relationships.

Our Schema

Alt text

Example of Queries

Alt text

Deployment

Our app is deployed on heroku at: Myxology

https://limitless-everglades-19318.herokuapp.com

Built With

  • Rails (and all it's magic)
  • Along with these gems:
    • Bcrypt
    • FactoryBot
    • Faker
    • Rspec
    • Capybara
    • ShouldaMatchers...and more!

Contributing Members

  • Anten Skrabec
  • Mary Goodhart
  • Michael Clampett

With assistance from: * Mary Bork

Acknowledgments

Project Leads/Instructors:

  • Ian Douglas
  • Dione Wilson

littleshop's People

Contributors

cebarks avatar syntheticautomation avatar mgoodhart5 avatar marybork 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.