Nift is the perfect tool to create, manage and generate your SNApps for Loki's
This guide will help you publish a SNApp on the
1. Preparing your
Depending on your desired outcome you may want to only run a one time SNApp or a SNApp that continues to persistently use the same
1.1 Temporary SNApp
When you run
You are looking for the line with
[NFO] unnamed (868) Mon Dec 17 15:30:09 2018 AEDT llarp/handlers/tun.cpp:419 default:gtwemaxbfogy5absnjizmoafdngadknpagnoteoir7743ys4xbyo.loki set lokitun0 to have address 172.16.10.1:0
This loki address shown within this output will be the url to your SNApp and the local address to bind SNApps on. You can share the
You can proceed to 2. Creating your SNApp.
1.2 Persistent SNApp
Open up your
sudo nano ~/.lokinet/lokinet.ini
Scroll down to your
Now when you run
It will also output your SNApp pubkey which you can share to other individuals who you want accessing your SNApp. Look for the line for your SNApp pubkey:
[NFO] (762) Fri Jan 18 10:05:24 2019 AEDT llarp/handlers/tun.cpp:417 default:sxf7fx9eb4i3u5gyxpkka6wufzfsxyxsuep54c4kqk8axsfo17go.loki set lokitun0 to have address 172.16.10.1:0
In this circumstance your pubkey would be:
This address will be your SNApp address until you change the path to your SNApps private key.
2. Creating your SNApp
If you have not already, follow these instructions to install
In a terminal, command prompt or power shell window, change directory to the newly created snap directory, for example on linux enter:
Initialise managing a SNApp with
Back in your terminal, command prompt or power shell window enter:
You have now created your first SNApp locally, to view your SNApp open up
3. Serving your SNApp
Now we will serve our SNApp to the
cd ~/snapp/site sudo python3 -m http.server --bind <ip> <port>
For this example our pubkey is set to
sudo python3 -m http.server --bind 172.16.10.1 80
Now if you go to the
Jump onto the Lokinet irc and see if others can access your SNApp.
Well done, you have finished the guide and your SNApp is served on the Lokinet. For more on Lokinet, see the Lokinet public testing guide. See the Getting Started With Nift Guide for how to edit, manage and generate your SNApps. See here for template SNApp repositories that you can import/fork/clone to start making SNApps.