Login screen before running the app


Hello, I would like to know how a login screen before running the app, the user and password will be in the database. If anyone can help me I do not even know where to start, I never worked with nodejs only in php program.

And while the topic, is there any way to use the database without relying on server (like SQLite)?

Thank you