Add README instructions
This commit is contained in:
parent
38a68dbd3d
commit
62992b9256
30
README.md
30
README.md
@ -2,15 +2,41 @@
|
||||
|
||||
Bluesky Django PoC
|
||||
|
||||
### Install
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ make build
|
||||
$ cp env.sample .env
|
||||
$ vim .env
|
||||
APP_PORT=8111
|
||||
[change all the values you need]
|
||||
$ make start
|
||||
```
|
||||
|
||||
### Post install
|
||||
## Post install
|
||||
|
||||
```sh
|
||||
$ make migrate
|
||||
```
|
||||
|
||||
- Create a django superadmin user
|
||||
```sh
|
||||
$ 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
|
||||
|
||||
```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"'"}'
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user