Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.07 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.07 KB

Installation

git clone https://github.com/fono09/ttRelay
cd ttRelay
docker-compose run --rm node npm i

Getting Started

  1. Make 'config/default.json' as follows.
{
  "target_acct": "fono (Your screen name in the mastodon instance)",
  "redis_prefix": "hoge (Redis Prefix. anything)",
  "instance_domain": "ma.fono.jp (Your mastodon instance domain)",
  "mastodon_access_token": "1234afaf78191deea2a1b (Your token in mastodon(See below))",
  "consumer_key": "Q4VJIQofa13 (Your Twitter app's Consumer key)",
  "consumer_secret": "Ppc9feafjaq329u492aafa32 (Your Twitter app's Consumer secret)",
  "access_token_key": "1234657-f3I9104JJAKi (Your Twitter app's your access token key)",
  "access_token_secret": "FSAJ912FAaaSnhd (Your Twitter app's your access token secret)",
  "tag": "ttr (Relay tag for toot)"
}

The easiest way to get mastodon token: https://takahashim.github.io/mastodon-access-token/

Create your Twitter app : https://developer.twitter.com/

  1. Run docker-compose up

Testing

Run docker-compose run --rm -e NODE_ENV=development node npm run test