meteor-admin icon indicating copy to clipboard operation
meteor-admin copied to clipboard

Where am I supposed to put AdminConfig?

Open brttwrd opened this issue 8 years ago • 4 comments

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?

brttwrd avatar Sep 27 '16 01:09 brttwrd

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

webmagnets avatar Oct 01 '16 15:10 webmagnets

Under lib directory

jasenkoh avatar Oct 04 '16 10:10 jasenkoh

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.

jrcoimbra avatar Oct 17 '16 13:10 jrcoimbra

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?

ckbho avatar Apr 06 '17 08:04 ckbho