Skip to content

Repository files navigation

Instagram AI Leaderboard Frontend Service

This is the frontend microservice for the Instagram AI Leaderboard project. It provides a React-based user interface that connects to other microservices via API.

Features

  • Responsive UI for displaying the Instagram AI leaderboard
  • API-based integration with other microservices
  • Configurable endpoints for connecting to different environments
  • Service health monitoring and status display

Architecture

The frontend is designed as a standalone microservice that communicates with:

  1. Main Backend API: Acts as an API gateway for the frontend
  2. Analytics Service: Provides analytics and statistics data
  3. Logic Service: Provides data from the backend database and analytics (usually accessed directly)

Setup

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository:
git clone https://github.com/ndavipt/frontend-service.git
cd frontend-service
  1. Install dependencies:
npm install
  1. Create a .env file for configuration:
REACT_APP_API_URL=http://localhost:5050
REACT_APP_ANALYTICS_URL=http://localhost:5052
REACT_APP_SCRAPER_URL=https://scraper-service-907s.onrender.com

Running the Service

Start the development server:

npm start

The frontend will be available at http://localhost:3000

Building for Production

npm run build

The production build will be in the build directory.

Docker Deployment

Build the Docker image:

docker build -t insta-leaderboard-frontend .

Run the container:

docker run -p 80:80 -e REACT_APP_API_URL=http://api.example.com insta-leaderboard-frontend

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages