#THIS IS STEP 1 FOR NEW DEVELOPERS ON THE SAFE NETWORK!
Fnally had my breakthrough “Eureka!” moment!! Figured out the simplest way to make a real-life SAFE Web App, with just a .html and a .js javascript file.
This is largely a ripoff of @DavidMtl 's awesome SimpleSafe project (alpha), which also shows how to use several other GET/ POST/ DELETE commands, but I just wanted to do the bare minimum at this point, and tried to reduce his code to be as minimalistic as possible, just to show people how easy it is to make “technically” a real live SAFE Web App in Javascript.
Ah yes, sorry! Well, you could either pull the first section out of the latest tutorial, or examine the code from one of the community websites that have been uploaded to Test 10.
There were definitely differences between alpha and test9, as my integration tests failed against it. I haven’t tried test10 yet, but it could be the same.
I’m having the same problem with my Postman collection, it doesn’t work on test10. I’m looking at it now but don’t have a clue yet, e.g. the GET /appendableData/handle/:id doesn’t work now, I get:
{
“errorCode”: 404,
“description”: “Endpoint Not Found”
}
and if I now try with GET /appendable-data/handle/:id (which apparently it’s the correct path for this API in test10) I get the following:
{
“errorCode”: 400,
“description”: “error setting argument 1 - writeUInt64: no digits we found in input String”
}
Okay THIS I can read. I might have to look up some terms and examine the logic a bit more but I can at least read it. Thanks. Now I’m off to read the weekly update lol.
Page loads up locally, looks fine, but this js file is where the problems are. I tried combining the code from the original version (built around FFox proxy) and code from the safe-js Github readme.md where it gives the Auth example.
The whole point of this is to just make the Auth command work with safe-js and SAFE Beaker Browser. Any and all help very much appreciated!