![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ember-hoodie
Advanced tools
Use hoodie seamlessly with Ember.js
npm install -S ember-hoodie
// app/application/controller.js
import Ember from 'ember';
const {
Controller,
inject: { service }
} = Ember;
export default Controller.extend({
hoodieAccount: service('hoodie-account'),
actions: {
signIn(username, password) {
this.get('hoodieAccount').signIn({username, password});
},
signOut() {
this.get('hoodieAccount').signOut();
}
}
});
and in your application serializer
// app/serializers/application.js
import DS from 'ember-data';
export default DS.JSONSerializer.extend({
shouldSerializeHasMany: function() {
return true;
},
primaryKey: '_id' //hoodie generates _id
});
// app/services/store.js
import HoodieStore from 'ember-hoodie/services/store';
export default HoodieStore;
If you want ember server
to start the Hoodie Server for you, you have to configure
ENV.hoodie.server
.
// config/environment.js
var PouchDB = require('pouchdb');
if (environment === 'development') {
ENV.hoodie = {
client: {
url: 'http://localhost:4200'
},
server: {
PouchDB: PouchDB,
paths: {
public: 'dist'
}
}
}
}
The ENV.hoodie.server
property is the exact hoodie-server config that will be passed as hapi's register
options. So you can pass whatever options you need here. For example, to make hoodie act as a proxy to a couchdb, you can use:
ENV.hoodie = {
client: {
url: 'http://localhost:4200'
},
server: {
PouchDB: PouchDB.defaults({
prefix: 'http://localhost:5984',
auth: {
username: 'admin',
password: 'admin'
}
}),
port: 4201,
paths: {},
}
};
Now, you can just use the store as you are used to! Whabam! Please help me fill out these docs a little better.
git clone
this repositorynpm install
bower install
FAQs
The default blueprint for ember-cli addons.
We found that ember-hoodie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.