The Datafund App now has an option to upload a model or dataset from a shared pod. Doing so is straight forward. You just need a shared pod reference. There are multiple ways to obtain a shared pod reference. One is to use the FairOS Desktop App, or simply use your console to interact with FairOS.
If you don't have FairOS, check how to run it locally here.
Pod Reference
Here we will use console. If you already have an FDP account skip this step.
Creating an FDP account
To register new account run the following command. Just replace the YOUR_USERNAME, YOUR_PASSWORD and YOUR_MNEMONIC placeholders with appropriate values.
Save the text starting from the fairOS-.... That's a cookie that needs to be included into next requests.
If you already have a pod with uploaded data, then skip the following steps.
Creating a pod
Now create a new pod. Make sure to insert the cookie text that you have just saved into the placeholder COOKIE_CONTENT. Replace also POD_NAME with name of your pod and POD_PASSWORD with password that will be used to encrypt pod data.
Uploading a file
Now create a sample text file that will be uploaded to your new pod. Name it test-doc.txt and create it in the current directory. Again, replace placeholders POD_NAME and COOKIE_CONTENT with previously created pod name and the saved cookie respectively. Then to upload it to the newly created pod, run:
Sharing a pod
To obtain a pod reference the pod must be shared first. Replace placeholders POD_NAME, POD_PASSWORD and COOKIE_CONTENT with previously created pod name, password and the saved cookie respectively. Then run:
You will see an output similar to this:
The long string is your pod reference.
FDP Upload From Datafund App
Open the Datafund App. Sign in with preferred method and open the new model page.
Fill the required fields and in the Files section select FDP. Paste the pod reference into the filed there.
Click submit and your model will be published to Datafund App.