Skip to content
ttbohemian edited this page Jan 8, 2017 · 2 revisions

This wiki is an update as Meteor has been updated and have some breakpoints, also some packages have changed over time, but the Original Guide is not updated here a little help from a newbie to Meteor and Meteor-Admin. I will try to update it as more details come out. This wiki is startd by a non Official staff of Meteor-Admin, by far you could find some errors or missing other code/links or whatever... ttbohemian

0. Prerequisites

This guide is based on Meteor 1.4

This package is designed to work with certain types of projects. Your project should be using and have configured

essential packages for proper working of AdminLTe :

  • Iron Router - $ meteor add iron:router
  • Collection Helpers - $ meteor add dburles:collection-helpers
  • Collection2 - $ meteor add aldeed:collection2 or aldeed:collection2-core
  • An accounts system - e.g. $ meteor add accounts-base accounts-password
  • Roles - $ meteor add alanning:roles
    • $ meteor npm install --save bcrypt ( ? )
  • Less - $ meteor add [email protected] (if having issues add=> --allow-incompatible-update)
  • Account UI - $ meteor add accounts-ui: to get the login button so you can reg as user
  • Tabular - $ meteor add aldeed:tabular: to render the tables of the content
  • Bootstrap 3 - e.g. $ meteor add twbs:bootstrap
  • Fontawesome - e.g. $ meteor add fortawesome:fontawesome

1. Install

Download to your packages directory and run meteor add yogiben:admin then go to /admin

2. Config

The simplest possible config with one, 'Posts', collection. Create a new file as : Admin_config.js and put it into a folder that work both sides ( server and client )

( usualy /lib/Admin_config.js )

AdminConfig = {
  collections: {
    Posts: {}
  }
 };

This config will make the first user admin.

You can also set the adminEmails property which will will override this.

AdminConfig = {
  name: 'My App',
  adminEmails: ['[email protected]'],
  collections: {
    Posts: {}
  },
};

3. Define your data models ( uncompleted )

If you are unfamiliar with autoform or collection2 or collection-helpers you should check them out now.

You need to define and attach a schema to the collections that you want to edit via the admin dashboard. Check out the documentation.

AdminLTE Skin

In order to customise the skin, add the key skin with one of the allowed values. skin defaults to "blue".

Available skins:

  • black
  • black-light
  • blue
  • blue-light
  • green
  • green-light
  • purple
  • purple-light
  • red
  • red-light
  • yellow
  • yellow-light
AdminConfig = {
  // ...
  skin: 'black-light',
  // ...
}