Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could hoodie-account integrated with Ember.js? #16

Open
laplaceliu opened this issue May 8, 2016 · 3 comments
Open

Could hoodie-account integrated with Ember.js? #16

laplaceliu opened this issue May 8, 2016 · 3 comments

Comments

@laplaceliu
Copy link

Ember has no account solution itself, so that I want to use hoodie-account as Ember's account solution.
Could you tell me that my thoughts are realistic or not?

@gr2m
Copy link
Contributor

gr2m commented May 8, 2016

@laplaceliu yes that should be possible :) I don’t have a lot of experience with ember, but I think you can install npm modules into your ember app, right?

Install with npm install --save @hoodie/account. Then in the client code, you can do

var Account = require('@hoodie/account/client')

Then see all docs here: https://github.com/hoodiehq/hoodie-account-client

For the server part, if you use Hapi, you can do

server.register({
    register: require('@hoodie/account/server'),
    options: options
})

See all docs for the hapi server plugin here: https://github.com/hoodiehq/hoodie-account-server/tree/master/plugin

If you have different repositories for your backend and frontend apps, you can also install @hoodie/account-server and @hoodie/account-client as separate modules.

I’d love to see if you get it to work :) Let me know if you have any farther questions.

By the way, we are also migrating our Hoodie’s admin dashboard to the new Hoodie, and are using Ember for it. Let me know if you’d like to get involved :)

@fivetanley
Copy link

@laplaceliu If you need npm modules in your ember app, you'll need to use ember-browserify to get it loaded, but otherwise you should be able to look at Gregor's instructions.

@gr2m the admin dashboard sounds interesting!

@gr2m
Copy link
Contributor

gr2m commented May 26, 2016

check out https://github.com/hoodiehq/hoodie-admin for the work in new admin dashboard app (work in progress) made with ember

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants