https://github.com/dulacp/rack-scaffold
Automatically generate RESTful CRUD services
https://github.com/dulacp/rack-scaffold
Last synced: 2 months ago
JSON representation
Automatically generate RESTful CRUD services
- Host: GitHub
- URL: https://github.com/dulacp/rack-scaffold
- Owner: dulacp
- License: mit
- Created: 2013-06-23T03:03:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-25T22:56:55.000Z (almost 12 years ago)
- Last Synced: 2025-01-11T21:12:04.971Z (4 months ago)
- Language: Ruby
- Size: 138 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rack::Scaffold
**Automatically generate RESTful CRUD services**> This project generalizes the webservice auto-generation functionality of [Rack::CoreData](https://github.com/mattt/rack-core-data) with a plugin architecture that can adapt to any data model format. It is currently being actively developed for inclusion in the next release of [Helios](https://github.com/helios-framework/helios)
### Supported Data Models
- [Core Data Model](https://github.com/mattt/core_data/) (`.xcdatamodeld`)
- [Sequel](https://github.com/jeremyevans/sequel)
- [ActiveRecord](https://github.com/rails/rails)## Usage
### Gemfile
```Ruby
source :rubygemsgem 'rack-scaffold', require: 'rack/scaffold'
gem 'sequel'
gem 'core_data'gem 'unicorn'
gem 'pg'
```### config.ru
```ruby
require 'sequel'
require 'core_data'
require 'rack/scaffold'DB = Sequel.connect(ENV['DATABASE_URL'])
run Rack::Scaffold model: './Example.xcdatamodeld', only: [:create, :read]
```## Examples
An example web API using a Core Data model can be found the `/example` directory.
## Contact
Mattt Thompson
- http://github.com/mattt
- http://twitter.com/mattt
- [email protected]## License
Rack::Scaffold is available under the MIT license. See the LICENSE file for more info.