Skip to content

Add initial setup wizard for new deployments #922

@brylie

Description

@brylie

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
  • Add a global router hook, via Router.onBeforeAction() or Router.onRun(), that calls the server method on every route
    • E.g. Router.onBeforeAction(function () { Meteor.call('checkRequiredSettings', ... ) });
  • If the server method returns false the router should re-direct the user to the configuration screen
  • Project starts successfully by calling only meteor. I.e. the --settings flag 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions