Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

Common patterns with Solid

Zwifi
2,094 views

An introduction to solid common patterns

This interactive tutorial is meant to be used as a complement to the solid developer documentation.

Reading from a public resource

Let's start out with the simplest possible interaction with a solid server: reading a public resource.

A public resource can be accessed without authentication, so it's basically like any resource on the web: a GET on the IRI, and you're good to go.

I wonder what Cleopatra shared in her blog.
const axios = require("axios");
// You can change the host and resource to match something from
// your own pod if you want
const host = "https://cleopatra.solid.community"
const resource = "/public/blog/religion/greek-egyptian-conandrum.txt"
const url = host+resource;
axios.get(url)
.then(response => {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants