Skip to content

MacKLess/holy_mackerel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Holy Mackerel

Epicodus Solo Project in Rails, December 1, 2017

By L. D. MacKrell

Description

This is a site for a seafood company Holy Mackerel. It allows users to create an account and leave reviews on products. An admin will be able to login and access reserved components of the site.

Set-up/Installation Instructions

  • Clone this repository
  • From the project root directory, run the following commands:
    • Note: seeding the database will remove all existing data and replace it.
    bundle install
    rake db:create
    rake db:migrate
    rake db:seed
    rake db:test:prepare
    rails s
    
  • You can then access the app in your web browser at localhost:3000
  • To give an account admin privileges:
    • In the project root run rails c
    • Then run:
      User.find_by(email: "[account email address]").update(admin: true)
    • The account will now have admin access to the app.

Specifications

TODO

  • Need landing page with information about company

  • X All users can view products and their detail pages

    • X name
    • X cost
    • X guide
    • X notes
    • X reviews
    • image
  • Authenticated users

    • Can leave Reviews
  • Administrators

    • CRUD products
    • Delete user reviews
  • Users can view products.

  • Users can add, view, edit, and remove their own product reviews.

  • Users can only view other users' reviews.

  • Users can log in using email and password.

  • Admin can add, view, edit, and remove products.

  • Administrators can delete user reviews for products.

Support and contact details

Please contact ldmackrell@gmail.com with questions, comments, or issues.

Technologies Used

  • Ruby
  • Rails
  • Bootstrap
  • Devise

License

Copyright (c) 2017 L. D. MacKrell

This software is licensed under the MIT license.

About

Epicodus solo practice Rails week 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published