Braise ![[travis]](https://img.hex.pm/fetch/91972ce9a61207fe9b130b674145854c5c35a2f8/68747470733a2f2f7472617669732d63692e6f72672f496f72614865616c74682f6272616973652e706e67)
Braise cooks those boring old JSON Schema definitions down into rock-hard-awesome Ember Data adapters and models.
Releases published on hex.pm at https://hex.pm/packages/braise.
Braise generates Ember Data adapters and models compatible with Ember Data 2.7+.
Installation
cd ~/src
git clone https://github.com/IoraHealth/braise.gitAdd to your PATH
Bash
echo 'export PATH=$PATH:~/src/braise/bin' >> ~/.bash_profileZsh
echo 'export PATH=$PATH:~/src/braise/bin' >> ~/.zshrcUsage
$ braise [--file|-f] <JSON_SCHEMA_FILE>Takes that boring JSON schema file and outputs some much better files.
Building
-
Ensure Elixir 1.4+ is installed. On macOS:
brew install elixir. -
Run
make. See more targets in theMakefile
Examples
The examples dir has some input json schemas and the corresponding output produced by braise. To regenerate them
$ make samplesLicense
MIT. See LICENSE.md for full license text.