I need to perform some early startup code to see if a user is logged in and, if not, present a login form which, in turn, will perform a bunch of tasks relating to creating an account or logging them in.
Where's the best place to do that? I was assuming app.js.
app.js is your best bet. It gets loaded every time you run the app.
is there a specific function to call from app.js for startup?
I was thinking it was resume, but that's not working the way I want. I just want to run at startup and nothing more.