Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where am I supposed to put AdminConfig? #370

Open
brttwrd opened this issue Sep 27, 2016 · 4 comments
Open

Where am I supposed to put AdminConfig? #370

brttwrd opened this issue Sep 27, 2016 · 4 comments

Comments

@brttwrd
Copy link

brttwrd commented Sep 27, 2016

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
Copy link

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

@jasenkoh
Copy link

jasenkoh commented Oct 4, 2016

Under lib directory

@jrcoimbra
Copy link

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
Copy link

ckbho commented Apr 6, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants