Skip to content

akane0915/portland-restaurant-tracker

Repository files navigation

Portland Restaurants to Try

This is a personal project I created to track restaurants in Portland that I would like to try! Restaurants can be sorted by location and cuisine type. Please note this application is built with a SQL database. Follow the instructions below to ... May 7, 2017

By Asia Kane

Description

Prerequisites

Web browser with ES6 compatibility Examples: Chrome, Safari

Ruby Bundler

Specifications

Behavior Input Output

Setup/Installation Requirements

  • In a terminal window, clone this repository to your machine and navigate to the file path in your terminal.
  • Run $bundle
  • Set up a development database and a test database in SQL using the Rake Gem and Active Record(see instructions below)
  • Run $ruby app.rb
  • Type localhost:4567 in a browser window to view application
  • If you would like to make changes, open files in text editor of your choice
  • Make changes as desired
  • Make frequent commits with detailed comments
  • Submit changes as pull request to Asia at akane0915 on Github

Database Setup Instructions

  • If Postgres is not installed on your computer, follow these instructions https://www.learnhowtoprogram.com/ruby/ruby-database-basics/installing-postgres-7fb0cff7-a0f5-4b61-a0db-8a928b9f67ef

  • Open an new terminal window and run $postgres and leave it running

  • In another terminal window, run $rake db:create

  • Run $rake db:migrate

  • Run $rake db:test:prepare

  • In another terminal window, run $psql

  • Type the following:

  • CREATE DATABASE volunteer_tracker;

  • \c volunteer_tracker

  • CREATE TABLE projects (id serial PRIMARY KEY, title varchar);

  • CREATE TABLE volunteers (id serial PRIMARY KEY, name varchar, hours int, project_id int);

  • CREATE DATABASE volunteer_tracker_test WITH TEMPLATE volunteer_tracker;

Known Bugs

N/A

Support and contact details

I encourage you to update/make suggestions/refactor this code as you see fit. I am always open to improvement! Please contact Asia Kane at asialkane@gmail.com with questions.

Technologies Used

  • Ruby
  • Sinatra
  • SQL Relational Database Management System
  • Active Record (ORM)
  • Rake Gem
  • Postgres Database Management System
  • Psql
  • Capybara Integration Testing
  • Rspec Gem
  • Pg Gem
  • HTML
  • CSS
  • Bootstrap https://getbootstrap.com/
  • ES6
  • Jquery https://jquery.com/

License

This software is licensed under the MIT license Copyright © 2017 Asia Kane

About

Personal Project to track restaurants to try! Ruby using Active Record, Rake, SQL, Sinatra, Unit and Integration Testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published