First-time setup wizard recipe?


We have an application that stores settings in a collection. When the application is first started, the collection will be empty. What are some ideas as to how we can show a settings page when first launching a deployed application?


You could wire up a check to see if any settings have been stored via your router. This check could be called on every incoming request. If no settings exist then route users to the initial settings page, otherwise let them continue to their requested route. If you’re using FlowRouter for example, you could create a trigger that performs the necessary check and associated redirects.


Thanks @hwillson. We are currently using Iron Router, but can still take your advice by using hooks. FWIW in the future, we may migrate to FlowRouter.