Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-uncharted-describe-models

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-uncharted-describe-models

Generating ember-data schema from a backend definition. Meant to be used with the ember-schema gem.

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

UnchartedCode Describe Models Build Status

==============================================================================

Please note, this is mainly used internally at the moment. We are making certain decisions based on our needs. If you would like to use this in your application then open an issue with your use case.

Generating ember-data schema from a backend definition. Meant to be used with the ember-schema gem.

Compatibility

  • Ember.js v2.18 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install ember-cli-uncharted-describe-models

Usage

Users: If you are using this library I'd love to hear from you. This project is used "internally" for several projects and the direction is currently driven by those. We'd be happy to see others using it as well.

There are two main pieces to this library.

  1. Automatically building model schema using a backend definition
  2. Extending DS.Model with some helpful mixins

Automatically Defined Models

For the first part it is assumed that you generate a model for every backend model. However it's not necessary to define each field. What you need before any of this is a schema.json. It can be generated via the command line.

ember update-models --proxy http://localhost:5000

This assumes you have exposed /api/models/describe through the ember-schema gem. It will write out app/schema.json.

Once you have that you can generate a model which will automatically pull field level and associations from the schema.

ember generate model User

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 30 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc