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
Web browser with ES6 compatibility Examples: Chrome, Safari
Ruby Bundler
Behavior | Input | Output |
---|
- 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
-
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;
N/A
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.
- 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/
This software is licensed under the MIT license Copyright © 2017 Asia Kane