Open brttwrd opened 8 years ago
I think you can put it anywhere. I put it in the root folder of my project.
Under lib
directory
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.
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?
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?