This is a project using a one to many relationship to build a food website. This project includes authorization and authentication services as well.
- HTML
- Bootstrap
- git
- Ruby on Rails
- Embedded Ruby (ERB)
- RSpec
- Bundler
- PostgreSQL
- Devise
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.
- Ruby is required to run this application
- PostgreSQL is required to run the database
Ruby download instructions PosgreSQL download instructions
-
Navigate to the desired directory where you would like to clone the project to.
-
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
- 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
- While located in the root directy, install gem bundler by typing:
$ gem install bundler
- Install gem bundles by typing:
$ bundle install
- Add your PSQL Username and Password to the database.yml file located within the config folder!
- Create a database for this project by typing the following into your terminal while located in the root directory:
$ rake db:create
- Add all tables to the database by typing the following in your terminal:
$ rake db:migrate
- 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.
-
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.
-
Once on "localhost:3000" sign up with an email and password and have fun.
- 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
GPLv3
Zack Rutledge © 2021