Bluesky Django PoC
Go to file
2024-11-14 19:46:25 +01:00
docker Initial commit 2024-11-14 12:12:53 +01:00
src Minor stuff 2024-11-14 19:46:25 +01:00
.gitignore Initial commit 2024-11-14 12:12:53 +01:00
docker-compose.yml Initial commit 2024-11-14 12:12:53 +01:00
Dockerfile Initial commit 2024-11-14 12:12:53 +01:00
env.sample Del DJANGO_SETTINGS_MODULE 2024-11-14 13:03:48 +01:00
Makefile Applied migraitons + fixed make migrate command 2024-11-14 13:03:31 +01:00
README.md Add README instructions 2024-11-14 18:27:35 +01:00

Bluesky Django

Bluesky Django PoC

Install

$ make build
$ cp env.sample .env
$ vim .env
  APP_PORT=8111
  [change all the values you need]
$ make start

Post install

$ make migrate
  • Create a django superadmin user
$ make sh
(ct)$ python manage.py createsuperuser
  • 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

$ 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"'"}'