From 2b42038c92251394d30f108b3f3c6d3fc36d70dc Mon Sep 17 00:00:00 2001
From: fproject
Date: Sat, 23 May 2026 13:15:48 +0530
Subject: [PATCH 1/2] docs: improve Docker and local development setup
documentation
---
README.md | 189 +++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 179 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index a747b53a..5f9b85f9 100644
--- a/README.md
+++ b/README.md
@@ -41,28 +41,194 @@ Welcome to **GitHub Tracker**, a web app designed to help you monitor and analyz
---
## ๐ Setup Guide
-1. Clone the repository to your local machine:
+
+### ๐ Prerequisites
+
+Before setting up the project locally, ensure the following tools are installed on your system:
+
+- Node.js (v18 or later recommended)
+- npm
+- Docker
+- Docker Compose
+- MongoDB (required for backend services and testing)
+
+---
+
+## ๐ฅ Clone the Repository
+
+```bash
+git clone https://github.com/yourusername/github-tracker.git
+cd github-tracker
+```
+
+---
+
+# ๐ป Local Development Setup
+
+This project contains both frontend and backend services.
+
+## โถ๏ธ Frontend Setup
+
+Install frontend dependencies:
+
+```bash
+npm install
+```
+
+Start the frontend development server:
+
+```bash
+npm run dev
+```
+
+The frontend will run on:
+
+```txt
+http://localhost:5173
+```
+
+---
+
+## โ๏ธ Backend Setup
+
+Move into the backend directory:
+
```bash
-$ git clone https://github.com/yourusername/github-tracker.git
+cd backend
```
-2. Navigate to the project directory:
+Install backend dependencies:
+
```bash
-$ cd github-tracker
+npm install
```
-3. Run the frontend
+Start the backend server:
+
```bash
-$ npm i
-$ npm run dev
+npm run dev
+```
+
+The backend server will run on:
+
+```txt
+http://localhost:5000
```
-4. Run the backend
+---
+
+# ๐ณ Docker Development Workflow
+
+The project includes Docker configurations for both development and production environments.
+
+## ๐ฆ Development Environment
+
+Run the complete development environment using Docker:
+
```bash
-$ npm i
-$ npm start
+npm run docker:dev
```
+This command:
+
+- Builds frontend and backend containers
+- Starts development services
+- Enables live file changes using Docker volumes
+- Runs frontend and backend simultaneously
+
+### Development Services
+
+| Service | Port |
+|----------|------|
+| Frontend | 5173 |
+| Backend | 5000 |
+
+---
+
+## ๐ Production Environment
+
+Run the production Docker setup:
+
+```bash
+npm run docker:prod
+```
+
+This command:
+
+- Creates optimized production builds
+- Runs frontend using Nginx
+- Starts backend production services
+
+### Production Services
+
+| Service | Port |
+|----------|------|
+| Frontend | 3000 |
+| Backend | 5000 |
+
+---
+
+# ๐ Docker Configuration Overview
+
+| File | Purpose |
+|------|----------|
+| `Dockerfile.dev` | Development container setup |
+| `Dockerfile.prod` | Production container setup |
+| `docker-compose.yml` | Multi-service container orchestration |
+
+---
+
+# ๐ Local Development Workflow
+
+Recommended contributor workflow:
+
+1. Fork the repository
+2. Clone your fork locally
+3. Create a new branch
+4. Install dependencies
+5. Run frontend/backend locally or using Docker
+6. Make changes
+7. Test your implementation
+8. Commit and push changes
+9. Open a Pull Request
+
+---
+
+# ๐ฑ Environment Configuration
+
+The project uses environment variables for configuration.
+
+Frontend environment variables:
+
+```env
+VITE_API_URL=your_api_url
+```
+
+Backend environment variables:
+
+```env
+PORT=5000
+MONGO_URI=your_mongodb_connection
+SESSION_SECRET=your_secret
+```
+
+Create corresponding `.env` files before running the application.
+
+---
+
+# ๐ ๏ธ Useful Commands
+
+| Command | Description |
+|----------|-------------|
+| `npm run dev` | Start frontend locally |
+| `npm run build` | Create production build |
+| `npm run docker:dev` | Run Docker development environment |
+| `npm run docker:prod` | Run Docker production environment |
+| `npm run test` | Run frontend tests |
+| `npm run test:backend` | Run backend tests |
+
+---
+
## ๐งช Backend Unit & Integration Testing with Jasmine
This project uses the Jasmine framework for backend unit and integration tests. The tests cover:
@@ -140,3 +306,6 @@ spec_files: [
โฌ๏ธ Back to Top
+
+
+
From e956269e92eb50333897bad4fa1a1900a0754631 Mon Sep 17 00:00:00 2001
From: fproject
Date: Sat, 23 May 2026 13:29:00 +0530
Subject: [PATCH 2/2] docs: fix repository URL and env variable documentation
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 5f9b85f9..d330bd24 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ Before setting up the project locally, ensure the following tools are installed
## ๐ฅ Clone the Repository
```bash
-git clone https://github.com/yourusername/github-tracker.git
+git clone https://github.com/GitMetricsLab/github_tracker.git
cd github-tracker
```
@@ -201,7 +201,7 @@ The project uses environment variables for configuration.
Frontend environment variables:
```env
-VITE_API_URL=your_api_url
+VITE_BACKEND_URL=http://localhost:5000
```
Backend environment variables: