Twister: Difference between revisions

From ArchWiki
m (add a link to chinese translation)
m (→‎Configuration: Keep consistent style for buttons on the webpage)
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[zh-cn:Twister]]
[[Category:Internet applications]]
[[Category:Internet applications]]
[http://twister.net.co/ Twister] is an experimental peer-to-peer microblogging software. It's in very alpha state!
[[zh-hans:Twister]]
[http://twister.net.co/ Twister] is an experimental peer-to-peer microblogging software.


== Installation ==
== Installation ==


The {{AUR|twister-core-git}} package and the {{AUR|twister-html-git}} html interface are available in the AUR.
[[Install]] {{AUR|twister-core-git}} and the {{AUR|twister-html-git}} html interface.


== Setup ==
== Configuration ==


Start the daemon with
[[Start/enable]] {{ic|twister.service}}.
 
# systemctl start twister
 
Enable the daemon to start on system boot
# systemctl enable twister


This will by default load both the twister-core daemon, and the twister-html gui.
This will by default load both the twister-core daemon, and the twister-html gui.


Then try to access: [http://127.0.0.1:28332/home.html http://127.0.0.1:28332/home.html].
Connect to http://user:pwd@127.0.0.1:28332/home.html
 
Switch to the network tab and wait for the complete download of the blockchain. Go to the 'setup account' tab and create a new user. Wait for your registration to be finished. Edit your profile. Your profile will be set in a new block, so wait for the 'save' button to appear.


== Gui Interface ==
{{Note|The "user" and "pwd" is hard coded into the source currently and only accessible from your machine. That is why you create a new user here.}}


The twister-html aur package contains a web based gui interface, which can be accessed at [http://127.0.0.1:28332/home.html http://127.0.0.1:28332/home.html]. This interface allows full configuration of Twister, and can be used to create and read posts.
In the Network tab, wait until the daemon downloads the entire blockchain.


== JSON/CLI Interface ==
In the Login tab, create a new user. Wait a few seconds for the daemon to calculate the Proof-Of-Work to propagate your registration. You’ll be redirected to the Edit Profile tab: complete it. Wait a few minutes until your registration is accepted into a new block. The “Save” button will be disabled in the meantime.


Twisterd comes with a command line based utility, that can be used run and configure twister. However, this interface is an overlay on the JSON-RPC interface, and therefore is mostly useful for debugging and development. See the following page for the full documentation of this interface [http://twister.net.co/?page_id=58 http://twister.net.co/?page_id=58]. A brief summary of this interface is as follows.
{{Warning|Save your secret key: this is the only way to “authorize”, there is no password recovery by mail.}}
=== Creating Users ===


The following command creates a new username on Twister
The next time you enter the page, press "Login" and choose your newly created user to login.


# twisterd createwalletuser myname
== Graphical interface ==


The following command propagates the user to the network
The twister-html interface can be accessed at http://127.0.0.1:28332/home.html. It allows full configuration of Twister, and can be used to create and read posts.
# twisterd sendnewusertransaction myname


=== Creating and Viewing Posts ===
== JSON/CLI Interface ==
# twisterd newpostmsg myname 1 "hello world"
 
# twisterd getposts 5 '[{"username":"myname"},{"username":"myfriend"}]'
 
=== Private Messages ===
# twisterd newdirectmsg myname 2 myfriend "secret message"
 
# twisterd getdirectmsgs myname 10 '[{"username":"myfriend"}]'
 
=== Profile Management ===
 
# twisterd dhtput myname profile s '{"fullname":"My Name","bio":"just another user","location":"nowhere","url":"twister.net.co"}' myname 1
 
# twisterd dhtget myfriend profile s


=== Help ===
Twisterd comes with a command line based utility, that can be used run and configure twister. However, this interface is an overlay on the JSON-RPC interface, and therefore is mostly useful for debugging and development. See the following page for the full documentation of this interface [http://twister.net.co/?page_id=58 http://twister.net.co/?page_id=58].
# twisterd help

Latest revision as of 10:33, 8 August 2022

Twister is an experimental peer-to-peer microblogging software.

Installation

Install twister-core-gitAUR and the twister-html-gitAUR html interface.

Configuration

Start/enable twister.service.

This will by default load both the twister-core daemon, and the twister-html gui.

Connect to http://user:pwd@127.0.0.1:28332/home.html

Note: The "user" and "pwd" is hard coded into the source currently and only accessible from your machine. That is why you create a new user here.

In the Network tab, wait until the daemon downloads the entire blockchain.

In the Login tab, create a new user. Wait a few seconds for the daemon to calculate the Proof-Of-Work to propagate your registration. You’ll be redirected to the Edit Profile tab: complete it. Wait a few minutes until your registration is accepted into a new block. The “Save” button will be disabled in the meantime.

Warning: Save your secret key: this is the only way to “authorize”, there is no password recovery by mail.

The next time you enter the page, press "Login" and choose your newly created user to login.

Graphical interface

The twister-html interface can be accessed at http://127.0.0.1:28332/home.html. It allows full configuration of Twister, and can be used to create and read posts.

JSON/CLI Interface

Twisterd comes with a command line based utility, that can be used run and configure twister. However, this interface is an overlay on the JSON-RPC interface, and therefore is mostly useful for debugging and development. See the following page for the full documentation of this interface http://twister.net.co/?page_id=58.