How to build an App on SAFE Network?

The RegisterAppSession function isn’t a wrapper to anything. It merely helps someone connect to the launcher app to authenticate the current app and retrieve it’s DirectoryInfo objects which it can then use to store/retrieve data to those folders in the network via the NFS API.

boost-filesystem is just a C++ helper lib(obv a very useful helper lib but in essence just a helper lib) to access the filesystem in a machine. It doesn’t have anything specific to the network. Actually even in C++ you’ll only be using boost-filesystem if you wanted to access the VFS/Native drive from a C++ app. Now there are other filesystem helper libs in C++ too, so this is just one example. If we take a different language via the port’s, they would use their own helper libs to access the system’s filesystem.

It’s easier to think of Ports as the equivalent to the current C++/RUST API’s for non C++/RUST App devs. So in essence the Ports project doesnt by itself set an objective to make stuff “easier”. We can have a completely detached project have it as it’s objective but Ports project merely opens the door to app devs coming from different languages to the network.

I think this might now be clearer after the previous answer as to the objective of the Ports project. So exposing the NFS API which was in C++ was indeed one of the things the Ports project dealt with for non C++ languages.

Sample code/examples will now almost get integrated as part of the individual projects themselves with rust which has a dedicated examples section for each module and in-line documentation examples. We should also see detached Examples/Slightly more full-fledged apps showcasing various features of the network.

Hope this helps :smile:

3 Likes