ember-daux
Ember addon for integrating Daux
Installation
ember install ember-daux
Usage
Setup your models
Create your model at app/models/[model-name].js:
// app/models/user.js; static { return 'name'; } static { return country: type: 'country' kind: 'belongsTo' inverse: null groups: type: 'group' kind: 'hasMany' inverse: 'members' posts: type: 'post' kind: 'hasMany' inverse: 'author' ; } /** * Optional hook to deserialize a record */ static { const deserializedRecord = {}; Object; return deserializedRecord; }
Next, let's create a model curator that'll contain all the models we have:
// app/models/index.js; ; ;
store
service
Injecting the ;; ;
Contributing
Installation
git clone <repository-url>
cd ember-daux
npm install
Linting
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.