Can someone update the tutorial to be compatible with @maidsafe/safe-node-app 0.9.0 API please?

Is this Peruse v0.6 api documented anywhere?
Would you happen to have a link?

safe-node-app 0.9.0 api
https://docs.maidsafe.net/safe_app_nodejs/

Peruse v0.7-rc2
https://github.com/maidsafe/safe_browser/releases/tag/peruse-0.7.0-rc.2

Download the tar.gz file and if you use Linux type these commands:

tar zxvf safe_browser-peruse-0.7.0-rc.2.tar.gz
cd safe_browser-peruse-0.7.0-rc.2
yarn package
mv release/safe_browser-peruse-0.7.0-rc.2 /opt/Maidsafe/Peruse

Then create two launcher files for Peruse

peruse.desktop

[Desktop Entry]
Name=Peruse
Version=0.7.0-rc2
GenericName=SAFE Network Browser
Comment=Browse the SAFE Network
Encoding=UTF-8
Type=Application
Icon=safeicon
Terminal=false
Path=/opt/Maidsafe/Peruse
Exec=/opt/Maidsafe/Peruse/peruse --live %U
StartupNotify=false
Categories=Network;Browser;P2P;
MimeType=x-scheme-handler/safe;x-scheme-handler/safe-auth;

peruse-dev.desktop

[Desktop Entry]
Name=Peruse Mock
Version=0.7.0-rc2
GenericName=SAFE Network Browser Mock
Comment=Mock version of the SAFE Browser
Encoding=UTF-8
Type=Application
Icon=safeicon-dev
Terminal=false
Path=/opt/Maidsafe/Peruse/peruse
Exec=/opt/Maidsafe/Peruse/peruse --args --mock --preload %U
StartupNotify=false
Categories=Development;Network;Browser;P2P
MimeType=x-scheme-handler/safe;x-scheme-handler/safe-auth;

And move them to your local applications menu folder.

mv peruse*.desktop ~/.local/share/applications/
1 Like

The changes are to bring the DOM API into line with the nodejs API, so you can use the docs for that:

https://docs.maidsafe.net/safe_app_nodejs

1 Like

And beware there’s an extra function authorise:

https://github.com/maidsafe/safe_browser/blob/peruse/app/extensions/safe/webviewPreload.js#L93

2 Likes

We’ll be adding such information to Peruse README file in the next couple of days: https://github.com/maidsafe/safe_browser/issues/358, until we define another place to publish API documentation.

3 Likes

@tmark, FYI, Peruse v0.7.0 API docs published here: https://github.com/maidsafe/safe_browser#safe-network-api

3 Likes

This topic was automatically closed after 60 days. New replies are no longer allowed.