yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
827 stars 261 forks source link

Where am I supposed to put AdminConfig? #370

Open brttwrd opened 8 years ago

brttwrd commented 8 years ago

I've been searching for the answer to this for literally 3 hours, I just want to complete the initial admin login but I have no clue where to put AdminConfig = { collections: { Posts: {} } };

Shouldn't this be part of the documentation?

webmagnets commented 8 years ago

I think you can put it anywhere. I put it in the root folder of my project.

jasenkoh commented 8 years ago

Under lib directory

jrcoimbra commented 7 years ago

Create a file "admin_config.js" inside the lib directory, put this inside: AdminConfig = { name: 'Your app', adminEmails: ['your@email'], collections: { Posts: {} } } Now you're good to go.

ckbho commented 7 years ago

Personally I don't have a lib directory - but I followed the documentations. If you have a similar folder structure like mine, then you can put it in '/imports/startup/client/index.js' (routes.js in the same directory works too?).

The only question I have is that I didn't need to import anything to get it to work, yet I still get a warning saying that AdminConfig is not defined. What is the proper import definition?