gr2m / milestones

A GitHub backed Milestone thingy
http://gr2m.github.io/milestones/
69 stars 14 forks source link

Admin Dashboard #90

Open gr2m opened 8 years ago

gr2m commented 8 years ago

We released the code for the new Hoodie: https://github.com/hoodiehq/hoodie/

It currently does not include an admin dashboard. What we want is to create another core module at https://github.com/hoodiehq/hoodie-admin which will have a public/ folder with an admin UI. The admin UI then be accessible at /hoodie/admin the same way the generic account & store UIs can be loaded at /hoodie/account and /hoodie/store. See the Hoodie Architecture for an overview of how hoodie is working today.

Our preferred framework to use for the admin dashboard is Ember.js. We started migrating the old admin dashboard to Ember a while a go, but maybe it makes sense to start afresh fro the new Hoodie.

For the first iteration, it would be enough to only have a way to manage user accounts. We already created a client API for account admin functionality at hoodie-account-client/admin which can be used together with hoodie-account-server. It implements the Account JSON API which the admin client works against.

Above all, we want to make the setup as nice and seamless for Ember developers as possible. We heard great things about Ember CLI and want to embrace the community’s convention as much as possible. We do not have much Ember experience ourselves so would welcome any input from the community.

In a nutshell, for the first iteration of the admin’s dashboard, we’d like to have

Features

Please let me know if you have any further questions

courajs commented 8 years ago

@gr2m and I started playing around with this the other day - code @ https://github.com/courajs/hoodie-admin-spike. It automatically starts a hoodie server when you run ember serve, and there is a basic ember Service for admin operations. Currently all it actually does is list all users in the system

gr2m commented 8 years ago

@courajs could you maybe add a simple test to the repo, just to have the setup in place? Then I’d be good to move the code to https://github.com/hoodiehq/hoodie-admin, setup the automated releases, and add it to hoodie core :)

courajs commented 8 years ago

There are JSHint tests by default, and I just added a single component integration test. A single test run using PhantomJS can be run with ember test or npm test, and you can launch an auto-reloading test server with ember test --server or npm test -- --server

gr2m commented 8 years ago

SO FLUFFFF’N AMAZING!! Really impressed with all the Ember tools, thanks Aaron!

courajs commented 8 years ago

Yeah they're pretty awesome :)

gr2m commented 8 years ago

I created https://github.com/hoodiehq/hoodie-admin, currently working in initial-release branch: https://github.com/hoodiehq/hoodie-admin/pull/1