Skip to main content

Quick Start

Get a Solid server running in under 5 minutes.

Start the server

# Initialize configuration (interactive)
jss init

# Start server
jss start

Server is now running at http://localhost:3000.

Create a pod

curl -X POST http://localhost:3000/.pods \
-H "Content-Type: application/json" \
-d '{"name": "alice"}'

Response:

{
"name": "alice",
"webId": "http://localhost:3000/alice/#me",
"podUri": "http://localhost:3000/alice/",
"token": "eyJ..."
}

Save the token - you'll need it to write to your pod.

Write data

curl -X PUT http://localhost:3000/alice/public/hello.json \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/ld+json" \
-d '{"@id": "#greeting", "http://schema.org/text": "Hello, Solid!"}'

Read data

curl http://localhost:3000/alice/public/hello.json

Next Steps