From 3da12ae9e1689168c72a2c2e138a4b75b5bb0032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Thu, 14 Nov 2024 18:24:00 +0100 Subject: [PATCH] Add README instructions --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4f21f4..971c797 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,33 @@ Bluesky Django PoC -### Install +## Install ```sh $ make build $ make start ``` -### Post install +## Post install ```sh $ make migrate ``` + +- Create a django superadmin +- Go to the admin url (e.g. `http://localhost:8111/admin`) and log in as +superadmin +- Insert a new user, important data: + - `PDS URL` + - `Auth Token` + - `Refresh Token` +- Go to the timeline url (e.g. for the user_id=1: `http://localhost:8111/timeline/1`). There is no auth mechanism for now. + +### How to get the tokens + +```sh +$ export PDSHOST=https://your.pds +$ export BLUESKY_HANDLE=your_handle +$ export BLUESKY_PASSWORD=your_password +$ curl -X POST $PDSHOST/xrpc/com.atproto.server.createSession -H "Content-Type: application/json" -d '{"identifier": "'"$BLUESKY_HANDLE"'", "password": "'"$BLUESKY_PASSWORD"'"}' +```