Changelog

Ruby Icon changelog.com

Rack::CoreData - Automatically generate REST APIs for Core Data models

logged by @logbot 2012-07-24T18:18:01Z permalink #ruby

An interesting project from Mattt to scaffold RESTful web services based on CoreData models using Rack.

require 'bundler'
Bundler.require

# Rack::CoreData requires a Sequel connection to a database  
DB = Sequel.connect(ENV['DATABASE_URL'] || "postgres://localhost:5432/coredata")

run Rack::CoreData('./Example.xcdatamodeld')

View the Source for this project on GitHub.

0:00 / 0:00