This Node.js application scrapes the follower count of the Witnet's LinkedIn, Discord, Telegram, Medium and Twitter and serves it through a simple Express API. The data is cached for 12 hours by default to reduce unnecessary requests.
- Fetches follower count from LinkedIn.
- Caches data for 12 hours to improve performance.
- Provides a JSON API endpoint at
/
.
Ensure you have the following installed:
- Clone this repository:
git clone [email protected]:witnet/marketing-dashboard-api.git cd
- Install dependencies:
pnpm install
- Start the application:
node index.js
- Build the Docker image:
docker build -t marketing-dashboard-api .
- Run the container:
docker run -p 3000:3000 marketing-dashboard-api
- Open
http://localhost:3000/
in your browser or usecurl
:curl http://localhost:3000/
- The API will return the follower count in JSON format.