Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.62 KB

README.md

File metadata and controls

62 lines (43 loc) · 1.62 KB

PolkaBot Twitter

Distributing information about incentives for participating in the Polkadot ecosystem. Starting with Kusama.

Table of contents

Currently supported networks

Development

Pre-requisites

  • A twitter account for the bot.
  • Twitter API access
    • Apply for API access at developer.twitter.com

Getting Started

  • 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 file

    TWITTER_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

Gratitude