Distributing information about incentives for participating in the Polkadot ecosystem. Starting with Kusama.
- A twitter account for the bot.
- Twitter API access
- Apply for API access at developer.twitter.com
-
Clone the repository:
git clone https://github.com/buidl-labs/polkabot-twitter.git
-
cd into the
backend
folder inside main folder:cd polkabot-twitter/backend
-
Add environment variables in
.env
fileTWITTER_CONSUMER_KEY=your_twitter_consumer_key TWITTER_CONSUMER_SECRET=your_twitter_consumer_secret_key TWITTER_ACCESS_TOKEN=your_twitter_access_token TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_secret_token
-
Install the dependencies with:
npm install
-
Run the development server:
npm start
The top validator page should be available on http://localhost:3000/#/top-validator and the top nominator page on http://localhost:3000/#/top-nominator