Starting a hidden service is simple.
First you need to install Tor, and then edit the configuration file to configure the hidden service.
Suppose your node application is running on port 8080, you will edit the configuration file torrcand add:
HiddenServiceDir /var/lib/tor/nodeapp
HiddenServicePort 80 127.0.0.1:8080
When you restart Tor, it initializes a hidden service (generates keys, etc.) and starts proxy port 80 on local port 8080 (node application).
, /var/lib/tor/nodeapp/hostname, Tor, Tor node.