Wynn Netherland changelog.com/posts

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

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.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00