Rails API to store recipes, reviews and posts made from EmberJS App - http://foodie-blog-api.herokuapp.com/v1/activity_items
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
.codeclimate.yml
.coveralls.yml
.gitignore
.ruby-gemset
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru

README.md

foodie blog api logo

"Foodie" Blogging platform

Code Climate Build Status Coverage Status

Rails API meant to store resources (Posts, Recipes, Reviews and ActivityItems) and provide the backend for this Cooking Blog: https://github.com/juanroldan1989/foodie-blog

Development

Setup and run Redis:

http://redis.io/topics/quickstart

Clone repository:

git clone git@github.com:juanroldan1989/foodie-blog-api.git

Install gems:

bundle install

Setup DB:

rake db:migrate

Validate test suite:

rake test

Set example content:

rake set:example:content

Launch server:

foreman start

Endpoints

Create Posts/Reviews/Recipes:

curl -H "Content-Type:application/json; charset=utf-8" -d '{"post": { "user_id": 3, "title":"This is my first post","body":"I've always wanted to write about food!"}}' http://localhost:5000/posts

Retrieve Posts/Reviews/Recipes:

curl http://localhost:5000/posts

Retrieve ActivityItems generated:

curl http://localhost:5000/activity_items

Live App

EmberJS App: https://foodie-blog.herokuapp.com/ - Rails API: https://foodie-blog-api.herokuapp.com/v1/activity_items

EmberJS App: https://foodie-blog.herokuapp.com/posts - Rails API: https://foodie-blog-api.herokuapp.com/v1/posts

EmberJS App: https://foodie-blog.herokuapp.com/recipes - Rails API: https://foodie-blog-api.herokuapp.com/v1/recipes

EmberJS App: https://foodie-blog.herokuapp.com/reviews - Rails API: https://foodie-blog-api.herokuapp.com/v1/reviews