How can I automatically start my web app?

How can I start my web app automatically? If I close the terminal, my web app doesn’t work anymore. Help?

If you have a package.json file, edit the start script to what you run in the terminal to make it run.