From bb98ddf514e65c32ce47f2e7487d36e8a98b4be5 Mon Sep 17 00:00:00 2001 From: Kailasdevdas Date: Thu, 23 Apr 2026 13:30:11 +0530 Subject: [PATCH] chore: update backend port to 5008 and frontend to 3008 --- README.md | 4 ++-- backend/README.md | 2 +- backend/src/app.js | 2 +- docker-compose.dev.yml | 4 ++-- docker/dev/Dockerfile.main | 2 +- frontend/README.md | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 41d8739..a68f180 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Make sure you have installed: ```env DATABASE_URL=postgresql://user:password@db:5432/mydb -PORT=3000 +PORT=5008 JWT_SECRET=your_secret_here CORS_ALLOWED_ORIGINS=http://localhost:5173 @@ -51,7 +51,7 @@ EMAIL_FROM=admin@example.com ### Frontend (`frontend/.env`) ```env -VITE_API_URL=http://localhost:5000/api +VITE_API_URL=http://localhost:5008/api ``` --- diff --git a/backend/README.md b/backend/README.md index b7eec55..f53b4d1 100644 --- a/backend/README.md +++ b/backend/README.md @@ -32,7 +32,7 @@ PostgreSQL Database **2. Environment Variables** DATABASE_URL="" -PORT=3000 +PORT=5008 JWT_SECRET="" CORS_ALLOWED_ORIGINS=http://localhost:3001 http://localhost:3003 http://localhost:5174 http://localhost:5173 BYTESCALE_SECRET_API_KEY="" diff --git a/backend/src/app.js b/backend/src/app.js index 16b3d26..21593f6 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -56,7 +56,7 @@ app.use("/api/email", emailConfigRoutes); app.use("/api/newsMedia", newsMediaRoutes); app.use("/api/import", importRoutes); -const PORT = process.env.PORT || 3000; +const PORT = process.env.PORT || 5008; app.listen(PORT, () => { console.log(`Server running on port ${PORT}`); }); diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 2286f32..dad81f7 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -6,7 +6,7 @@ services: context: . dockerfile: docker/dev/Dockerfile.main ports: - - "5000:3000" + - "5008:5008" env_file: - ./backend/.env depends_on: @@ -19,7 +19,7 @@ services: context: . dockerfile: docker/dev/Dockerfile.frontend ports: - - "3000:3000" + - "3008:3000" env_file: - ./frontend/.env restart: unless-stopped diff --git a/docker/dev/Dockerfile.main b/docker/dev/Dockerfile.main index 33ebe00..0f7bc43 100644 --- a/docker/dev/Dockerfile.main +++ b/docker/dev/Dockerfile.main @@ -16,7 +16,7 @@ COPY ./backend . COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh -EXPOSE 5000 +EXPOSE 5008 ENTRYPOINT [ "entrypoint.sh" ] diff --git a/frontend/README.md b/frontend/README.md index e65504e..cbb723b 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -33,7 +33,7 @@ frontend/ Node.js (v20+) **2. Environment Variables** -VITE_API_URL="http://localhost:3000/api" +VITE_API_URL="http://localhost:5008/api" **3. Install Dependencies** npm install