Coder Social home page Coder Social logo

jaywinebrenner / code-review-week-11 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 748 KB

A Ruby-Rails based app that uses a one-to-many relationship between products and reviews for Mario's online store that includes ADMIN and user authorization. Created using Rails 5.2

Ruby 19.37% JavaScript 0.35% CSS 10.86% HTML 69.35% CoffeeScript 0.06%

code-review-week-11's Introduction

Mario's Discount Specialty Foods

By Jay Winebrenner

Description

A Ruby-Rails based app that uses a one-to-many relationship products and product reviews for Mario's online store.

Setup/Installation Requirements

enter image description here

Opening the App

  1. Click the link shown in the above photo and download the file.
  2. Unzip the file and navigate to the folder via your terminal or command line application.
  3. Type $ // Bundle // to install all the gems used in the project.
  4. Type $ // rake db:create // to create a database, followed by // rake db:migrate // to migrate the database.
  5. Type $ // rails s // to start the server, which will be available on your computer at localhost:3000.
  6. For purposes of these instructions, anything inside of // is what is to be typed in the terminal. If the instruction says // hello // for example, you'd type just the word hello in the terminal.

Assigning Admin privileges

  1. Go to the web app in your browser found at localhost:3000 after following the above 5 steps.
  2. Click Sign Up at the top nav bar to make an account. Enter email and password / password confirmation.
  3. Now we will make this account have admin privileges by first typing // rails c // into the terminal to open the rails console.
  4. Type // @user = User.first // to target your newly made account.
  5. Type // @user.admin = true // to turn on your admin status.
  6. Type // @user.save // to save your new admin status.
  7. Your account will now have admin privileges - including adding, editing and deleting products and editing, updating, and deleting reviews.

Technologies Used

  • Ruby
  • Rails
  • CSS
  • Bootstrap

Support and Contact

If you have any questions about anything at all, please don't hesitate to get in touch. [email protected]

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2019 Jay Winebrenner

code-review-week-11's People

Contributors

jaywinebrenner avatar

Watchers

James Cloos avatar  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.