Here is a template/janky starter for a react based SSG app.
Go to file Use this template
Dax911 fef1e474c6 🎉 init
push
2022-09-17 04:04:46 -05:00
node_modules 🎉 init 2022-09-17 04:04:46 -05:00
tor/hidden_service 🎉 init 2022-09-17 04:04:46 -05:00
.DS_Store 🎉 init 2022-09-17 04:04:46 -05:00
.torrc 🎉 init 2022-09-17 04:04:46 -05:00
README.md 🎉 init 2022-09-17 04:04:46 -05:00
domain.sh 🎉 init 2022-09-17 04:04:46 -05:00
index.js 🎉 init 2022-09-17 04:04:46 -05:00
package-lock.json 🎉 init 2022-09-17 04:04:46 -05:00
package.json 🎉 init 2022-09-17 04:04:46 -05:00
run.sh 🎉 init 2022-09-17 04:04:46 -05:00

README.md

Tor Hidden Service Host Using Node.js

Important Files

.torrc

Your all general configurations for the tor (Same as /etc/tor/torrc in other linux platforms)

run.sh

The Bash Script That Runs everything i.e. Tor Service and the Node.js server

tor Folder

The Folder That is the Container for the Hidden Service. (Same as /var/lib/tor/ in other linux platforms)

.replit

The Replit Config File. Configs things like the run button etc.

.replit.nix

The nix file that contains the packages to includes

Services Installed

  • Node.js - v16.x.x
  • npm - v8.x.x
  • tor - v0.4.6.9

Get The Domian

Tor Automatically generates a .onion domain for you and it is a random 56 character long string. Though you can customize it but thats another story.

The Domain Name is stored in the tor/hidden-service/hostname file. You can cat it to get the domain.

Or just run the domian.sh script. i.e.:

bash domain.sh

Notes

If there is no package.json file then at first initialize the node project and install the dependicies

npm init -y
npm i express dotenv body-parser

and ass the start script in the package.json

{
...
  
"start": "node index.js"
  
...
}