you will need to do to follow these steps :
1. install loopback, database(mongo, mysql etc.), forever on your server.
2. configure your web server for routing your domain
3. create an index.html file at your server and access it from domain (
www.xyz.com) , it must display your index.html contents., once it will be verified. you can go ahead.
4. If your webserver will be up, you must start your database services.
5. For loopback code :
1. dump your local code on server
2. change your db configuration in datasource.json and config.json e.g., host : 'IP', url:'http://mongodb:user:pass@host/db' etc.
3. and then start your loopback server.js file using any process automate tool such as , forever, pm2 nodemon etc.
e.g.,
$ sudo forever start server/server.js
once it will be done , you can verify your server :
www.xyz.com/explorer , it will display your all the api in swagger view.
For frontend routing,
Place you frontend bundle inside client folder at server and configure your middleware.json->public routing.
May be these step will help you.