- Ruby on Rails API for the Hegelian Bagel backend.
- This API consists of 3 domain models with
has_many
andbelongs_to
associations. - Pulls in news articles from News API.
- Built by Isabel K. Lee and Stephanie Zou.
To get started, you will only need Ruby on Rails and Postgres. To do so, you must have Homebrew and Ruby installed first.
In your terminal...
-
Install Homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-
Install Ruby
$ brew install ruby
-
Install Rails
$ gem install rails
-
Install PostgreSQL
$ brew install postgresql
-
Clone the repo and cd into the folder
-
Bundle Install
$ bundle install
-
Create migrations, migrate and seed:
$ rails db:create $ rails db:migrate $ rails db:seed
-
Last step, launch the rails server!
$ rails s
- Rack CORS: description
- ActiveModel::Serializer: description
- News API
Coming soon!