Ruby changelog.com

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.

Source: https://changelog.com/posts/rack-coredata-automatically-generate-rest-apis-for-core


No comments

Sign in or join to comment

0:00 / 0:00