First-time setup wizard recipe?


#1

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?


#2

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.


#3

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.