Skip to content

witnet/marketing-dashboard-api

Repository files navigation

marketing-dashboard-api

Overview

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.

Features

  • Fetches follower count from LinkedIn.
  • Caches data for 12 hours to improve performance.
  • Provides a JSON API endpoint at /.

Prerequisites

Ensure you have the following installed:

  • Node.js (Version 22 recommended)
  • Docker (optional, for containerization)

Installation

  1. Clone this repository:
    git clone [email protected]:witnet/marketing-dashboard-api.git
    cd 
  2. Install dependencies:
    pnpm install
  3. Start the application:
    node index.js

Running with Docker

  1. Build the Docker image:
    docker build -t marketing-dashboard-api .
  2. Run the container:
    docker run -p 3000:3000 marketing-dashboard-api

Usage

  • Open http://localhost:3000/ in your browser or use curl:
    curl http://localhost:3000/
  • The API will return the follower count in JSON format.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published