Skip to content

Dethik/Marios_Speciality_Food_Products

Repository files navigation

Mario's Speciality Food Products

Author: Zack Rutledge


Description

This is a project using a one to many relationship to build a food website. This project includes authorization and authentication services as well.

Technologies used

  • HTML
  • Bootstrap
  • git
  • Ruby on Rails
  • Embedded Ruby (ERB)
  • RSpec
  • Bundler
  • PostgreSQL
  • Devise

User Stories

Users should be able to add, update and delete new products. Don't worry about user authentication. Assume everyone who visits the site is an admin for now. Users should be able to click an individual product to see its detail page. (You will not be expected to show the product's average rating. That's included in the further exploration section.) Users should be able to add a review to a product. As an admin, I should be able to log in and log out of the application. As an admin, I should be able to add, update and delete projects. As an admin, I should be able to add posts. As an admin, I want to ensure that other users don't have access to CRUD functionality.


Schema

Image of schema.


Software Requirements

  • Ruby is required to run this application
  • PostgreSQL is required to run the database

Ruby download instructions PosgreSQL download instructions

Installation Instructions

  1. Navigate to the desired directory where you would like to clone the project to.

  2. Once you have chosen your desired directory, clone the github repo using the version control tool git (download instructions). Typing the following command into your terminal:

$ git clone https://github.com/Dethik/Marios_Speciality_Food_Products
  1. Open the project in VSCode by typing the following in your terminal:
$ code .
  • Note: VSCode is a code editing software. If you don't already have it, you can download it here
  1. While located in the root directy, install gem bundler by typing:
$ gem install bundler
  1. Install gem bundles by typing:
$ bundle install
  1. Add your PSQL Username and Password to the database.yml file located within the config folder!

Image of folder and file location.

  1. Create a database for this project by typing the following into your terminal while located in the root directory:
$ rake db:create
  1. Add all tables to the database by typing the following in your terminal:
$ rake db:migrate
  1. Mirror the migration database changes in the test database:
$ rake db:test:prepare

The database should now be correctly set up. And you may start a local server to interact with the project.

  1. To start a local server, open your default browser and type "localhost:3000" into the search bar and press enter. Here, you will see the live server.

  2. Once on "localhost:3000" sign up with an email and password and have fun.

Running Tests

  • This application was created using test-driven development (TDD).
  • To run the tests yourself, follow the steps below.

Simply type "rspec" into your terminal while located in the root directory of the project.

$ rspec

License

GPLv3
Zack Rutledge © 2021


Contact Information

Reach Zack via Linkedin or email.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages