This project provides a web-based interface to display statistics of GitHub repositories. It consists of a frontend (served with Nginx) and a backend (Node.js API) that fetches and processes GitHub repository data.
- Fetch and display GitHub repository statistics.
- Backend API for retrieving repository details.
- Frontend served via Nginx.
- Dockerized setup for easy deployment.
Before running the project, ensure you have the following installed:
git clone https://github.com/Ahmed-Dghaies/RepoStats.git
cd RepoStatsThe backend requires environment variables to function correctly. Copy the .env.template file inside the backend folder and rename it to .env:
cp backend/.env.template backend/.envFill in the required values in backend/.env.
docker-compose up --buildThis will build and start both the frontend and backend containers.
- Frontend:
http://localhost - Backend API:
http://localhost:3000
.github-stats/
├── frontend/ # Frontend (React, Vue, or other framework)
│ ├── Dockerfile # Frontend Dockerfile
│ ├── nginx.conf # Nginx configuration
│ └── src/ # Frontend source code
│
├── backend/ # Backend (Node.js, Express API)
│ ├── Dockerfile # Backend Dockerfile
│ ├── .env.template # Environment variables template
│ ├── src/ # Backend source code
│
├── docker-compose.yml # Docker Compose file
└── README.md # Project documentation
To stop the running containers, use:
docker-compose down- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit (
git commit -m "Add new feature"). - Push to the branch (
git push origin feature-branch). - Create a Pull Request.
This project is licensed under the License.