Ha! That’s brilliant!
Did you just add a media link in markdown?
how do you use firefox with safe xorurl?
That’s really cool! I bet mp3 audio will work the same too!
That markdown module on angular seems to.be pretty handy! I can’t take any credit for it, as I just feed in the markdown, but it is great that this sort of thing just works out of the box with sn_client.
Do you know if it streams or just downloads? I think it is probably just the latter atm, or at least from the Safe Network to the gateway. As you can tell, I’ve not done much experimenting other than getting the basic working!
This is excellent. I am still struggling, I seem incapable of RTFMing correctly. Can you post your project directory structure, index.json files and the URLs you are using so I can try to work out what i am doing wrong?
Will do, when I am back at computer.
Thank you, Josh, appreciated
I feel as though I am fumbling through this so… please take this as such .
I have not been using the index.json
safe node run-baby-fleming safe keys create --test-coins --for-cli safe files put ./upload/blog.md
# My Blog ## Some text blah blah ### some more text blah blah blah
- new terminal
git clone https://github.com/traktion/i-am-immutable-docker.git cd i-am-immutable-docker docker pull codiate/i-am-immutable:latest docker run --network host -t codiate/i-am-immutable:latest 127.0.0.1:12305
use your baby-fleming genesis node ip
- open your browser
http://localhost:8080/blog/yourblog/article/the url from
safe files put ./upload/blog.mdexclude safe://
That should work.
I have not got the index.json to work for me but I am short on play time.
@dreamerchris this should answer your question.
Thanks Josh, once the ravening hordes are fed, I will run through this.
I lied cos I’m impatient – thank you
The yourblog/myblog should just be the location of the json index (safe url for it, minus the safe:// prefix). I create an NRS link to it to give it a friendly name and make it easy to update (while keeping the same name).
In the current version, the content of the json file should just be a list of article safe urls.
Edit: the format of the configuration will change in the next version, so more settings can be added. In this version, it is purely a json array though
The safe urls are converted into gateway urls by the app. The app then requests these urls from the gateway. The gateway then converts them back to safe urls and pulls the data and returns it to the app.
So, in short, Firefox is just doing regular, non safe url requests to the gateway and the gateway talks to safe instead.
Nothing in downloads could it be elsewhere?
I’m not sure how it would work, is there a foolproof way to determine?
Not sure. If it was over a slow connection, it would be noticeable. It’s OK, I’ll do some testing. I don’t think it will be streaming atm.