this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fakermaker README

+60
+60
cmd/fakermaker/README.md
··· 1 + 2 + ## Running `fakermaker` 3 + 4 + Configure a `.env` file for use against `atproto` Typescript PDS implementation 5 + (in development mode, already running locally): 6 + 7 + ATP_PDS_HOST=http://localhost:2583 8 + ATP_AUTH_HANDLE="admin.test" 9 + ATP_AUTH_PASSWORD="admin" 10 + ATP_AUTH_ADMIN_PASSWORD="admin" 11 + 12 + or, against `laputa` golang PDS implementation (in this repo; already running 13 + locally): 14 + 15 + ATP_PDS_HOST=http://localhost:4989 16 + ATP_AUTH_HANDLE="admin.test" 17 + ATP_AUTH_PASSWORD="admin" 18 + ATP_AUTH_ADMIN_PASSWORD="admin" 19 + 20 + Then, from the top-level directory, run test commands: 21 + 22 + mkdir -p data/fakermaker 23 + export GOLOG_LOG_LEVEL=info 24 + 25 + # setup and create initial accounts; 100 by default 26 + go run ./cmd/fakermaker/ gen-accounts > data/fakermaker/accounts.json 27 + 28 + # create or update profiles for all the accounts 29 + go run ./cmd/fakermaker/ gen-profiles 30 + 31 + # create follow graph between accounts 32 + go run ./cmd/fakermaker/ gen-graph 33 + 34 + # create posts, including mentions and image uploads 35 + go run ./cmd/fakermaker/ gen-posts 36 + 37 + # create more interations, such as likes, between accounts 38 + go run ./cmd/fakermaker/ gen-interactions 39 + 40 + # lastly, read-only queries, including timelines, notifications, and post threads 41 + go run ./cmd/fakermaker/ run-browsing 42 + 43 + 44 + ## Docker Compose Integration Tests 45 + 46 + To run against Typescript services running in Docker, use the docker compose 47 + file in this directory. 48 + 49 + Run all the servics: 50 + 51 + docker-compose up 52 + 53 + Then configure and run `fakermaker` using the commands above. To run automated integration tests: 54 + 55 + # from top-level directory of this repo 56 + make test-interop 57 + 58 + If you need to wipe volumes (all databases): 59 + 60 + docker-compose down -v