stephaniezou1 / news_backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby on Rails API

  • Ruby on Rails API for the Hegelian Bagel backend.
  • This API consists of 3 domain models with has_many and belongs_to associations.
  • Pulls in news articles from News API.
  • Built by Isabel K. Lee and Stephanie Zou.

Getting Started

To get started, you will only need Ruby on Rails and Postgres. To do so, you must have Homebrew and Ruby installed first.

Node installation on OS X

In your terminal...

  1. Install Homebrew

    $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

  2. Install Ruby

    $ brew install ruby

  3. Install Rails

    $ gem install rails

  4. Install PostgreSQL

    $ brew install postgresql

Installation

  1. Clone the repo and cd into the folder

  2. Bundle Install

    $ bundle install

  3. Create migrations, migrate and seed:

    $ rails db:create
    $ rails db:migrate
    $ rails db:seed
    

Launch The Server

  1. Last step, launch the rails server! $ rails s

    Start developing!

Tools

Live demo

Coming soon!

About


Languages

Language:Ruby 99.3%Language:HTML 0.7%