Name: meteor-admin
Owner: Elao
Description: null
Created: 2015-05-11 10:11:22.0
Updated: 2015-05-11 11:19:24.0
Pushed: 2015-06-10 10:47:08.0
Homepage: null
Size: 164
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The elao:meteor-admin
package needs elao:meteor-elaostrap
, iron:router
and gfk:notifications
packages.
There is a tool to generate default scaffolding (Schema + Collection + Publications + Templates) : see https://github.com/Elao/meteor-admin-generator
admin dashboard is accessible on /admin
(ElaoAdmin.config.router.route_prefix
param)
to create a collection list trucs
(path /admin/trucs) :
create a publication trucs_list
in server/admin/publish.js
like :
or.publish('trucs_list', function () {
turn Trucs.find();
create trucs_list
template based on client/admin/collections/channels/list.html
and client/admin/collections/channels/list.js
to create a collection edit trucs
(path /admin/trucs/:id) :
create a publication trucs_edit
in server/admin/publish.js
like :
or.publish('trucs_edit', function (id) {
rn Trucs.find({});
create trucs_edit
template based on client/admin/collections/channels/edit.html
and client/admin/collections/channels/edit.js
to create a collection new trucs
(path /admin/trucs/new) : …
packages/admin/lib/admin.js
client/routing.js
:
// put this at end of routing to peserve app routes Router.mapElaoAdminRoutes();
ample of admin publications in `server/admin/publish.js`
ample of template : `client/admin` and `client/admin/collections/*`