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.
- 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
The frontend is designed as a standalone microservice that communicates with:
- Main Backend API: Acts as an API gateway for the frontend
- Analytics Service: Provides analytics and statistics data
- Logic Service: Provides data from the backend database and analytics (usually accessed directly)
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository:
git clone https://github.com/ndavipt/frontend-service.git
cd frontend-service- Install dependencies:
npm install- Create a
.envfile 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
Start the development server:
npm startThe frontend will be available at http://localhost:3000
npm run buildThe production build will be in the build directory.
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