One-way sync of individual tweets.
- Run
yarn install
to bring in dependencies. The repo uses yarn pnp so this should be fast. - Create a
.env
inside backend usingenv_example
as a template. - From the root run
docker compose -f docker/docker-compose.local.yml up -d
- From backend run
yarn start
- Top level is a common mono repo structure.
- Backend follows a DDD-esque structure where a 'domain' is roughly a
'transactional boundary' or a group of cohesive use cases. Within a domain we
find:
inter
or interfaces which expose functionality outside of the domain so that the domain may be "driven"infra
or infrastructure which are the things the domain "drives" such as a database, apis, etc.service
which brings everything together and exposes the use cases of the domain.
Pull
- Retrieval of an accounts tweets from TwitterPush
- Creates posts inside Orbis corresponding to subscribe users' tweetsSubscribe
- Identifies a twitter account to pull tweets from to push into Orbis
# Register a twitter user to sync
GET /subscribe/:id
# Pull latest tweets
GET /pull
# Push tweets into orbis / ceramic
GET /push