-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Description
When setting up a new Apinf instance, present the first administrator with a set-up wizard. This wizard should help the Admin complete any required, or optional, settings. It can optionally include a branding step.
Suggested solution
One suggested solution would be the following:
- Create a server method to check for required settings.
- E.g.
checkRequiredSettings
- E.g.
- Add a global router hook, via
Router.onBeforeAction()orRouter.onRun(), that calls the server method on every route- E.g.
Router.onBeforeAction(function () { Meteor.call('checkRequiredSettings', ... ) });
- E.g.
- If the server method returns
falsethe router should re-direct the user to the configuration screen - Project starts successfully by calling only
meteor. I.e. the--settingsflag is no longer required.- Note: the configuration wizard should make sure an administrator is logged in, to prevent abuse
Warning: Avoid publishing the settings to the client, as not all settings should be publicly known. E.g. we have private keys stored in our settings, so the checkRequiredSettings function should only run on the server.
Resources
- See the discussion thread in Meteor forums related to this task.
- See the Meteor Guide Methods article for details about Meteor Methods
- See the Iron Router Guide Hooks article for details about router hooks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels