Skip to content

codefortomorrow/food-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby version

  • Ruby 2.0.0
  • Rails 4.0.0
  • Grape - a framework for API

Repos

Files to edit

db/migrate/* schemes for each table app/api/api.rb the file that mounts API modules app/api/*api.rb the controllers for each API module

How to run

rails s

##Local database operation

drop the database

rake db:drop

recreate the empty database

rake db:migrate

populate the database with your seed data

rake db:seed

##How to deploy to Heroku

add the repo

git remote add heroku git@heroku.com:foodopendata-api.git

push to the Heroku

git push heroku master

drop the database

heroku pg:reset DATABASE

recreate the empty database

heroku run rake db:migrate

populate the database with your seed data

heroku run rake db:seed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published