An Ahau application designed to be run as an always online peer
700
Install Node 14 LTS with e.g. nvm or nvm-windows
$ npm install -g pataka-cli
$ pataka
You will then see logged out:
web ui : the urls that the web ui can be accessed athost : the hostname your pataka will be connected to over (you generally want this to be accessible on the internet)port : the local port your pataka scuttelbutt instance will be listening onfeedId : the unique scuttlebutt id of this pataka (for debugging)data : path to where data is being stored for this instanceconfig : path to where you can persist custom configTo use this in the cloud, you might like to launch it with a tool like: pm2
You can modify which port and hostname are used if by editing the config file output above.
Here's en example config (note all fields are optional)
{
"port": 8068,
"pataka": {
"host": "mydomain.nz",
"webPort": 6700,
"inviteUses": 10,
"log": false
}
}
You can also use ENV VAR (these will over-ride the config file):
PORT (default: 8088)PATAKA_HOSTPATAKA_WEB_PORT (default: 3000)
PATAKA_LOG controls logging, set to true to enablePATAKA_INVITE_USES
NOTE: it's currently not only possible to set the local port the patkaka listens on - you cannot set the external port the invite code will use If this external port is different you can manually edit the port invite code.
This module currently exposes an admin web page without authentication. It allows:
Add Authentication
find a way to not commit the raw public/ folder
Make it so you can upload profile images (may be broken atm?)
There's an annoying error logged on startup. It's safe to ignore but looks scary, it needs tidying up
Trace: deprecated api used: ssb-ref.parseAddress
at Object.parseAddress (/home/username/.nvm/versions/node/v14.16.0/lib/node_modules/pataka-cli/node_modules/ssb-ref/index.js:99:15)
at Object.<anonymous> (/home/username/.nvm/versions/node/v14.16.0/lib/node_modules/pataka-cli/node_modules/ssb-invite/index.js:97:24)
at apply (/home/username/.nvm/versions/node/v14.16.0/lib/node_modules/pataka-cli/node_modules/muxrpc-validation/index.js:197:15)
...
$ git clone https://gitlab.com/ahau/pataka-cli.git
$ cd pataka-cli
$ npm i
$ npm start
to start in development pataka env:
$ npm run dev
To update the dependencies to be in line with pataka
$ cd ~/projects/pataka
$ npm link pataka
$ cd ~/projects/pataka-cli
$ npm run syncDeps
To update the UI to be in line with pataka
$ cd ~/projects/pataka/ui
$ npm run build
$ cp -R ../dist ~/projects/pataka-cli/public
Content type
Image
Digest
sha256:457df17e4…
Size
388.9 MB
Last updated
over 3 years ago
docker pull communityfirst/pataka-cli