From 9f509260a5fc3c464a5bee949a0d839ebe1d7eb9 Mon Sep 17 00:00:00 2001 From: Maciej Kotowski Date: Mon, 4 Oct 2021 16:32:13 +0200 Subject: [PATCH] chnage ports --- backend/index.js | 2 +- src/constants.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/index.js b/backend/index.js index 2c42dec..e78a22a 100644 --- a/backend/index.js +++ b/backend/index.js @@ -1,7 +1,7 @@ const express = require("express"); const cors = require("cors"); const app = express(); -const port = process.env.PORT || 3000; +const port = process.env.PORT || 5000; const { MONGO_URI } = require("./config"); const mongoose = require("mongoose"); const events = require("./models/events"); diff --git a/src/constants.js b/src/constants.js index ce05f87..91863e4 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,6 +1,6 @@ import { createContext } from "react"; import { APIClient } from "./utils/APIClient"; -export const BACKEND_URL = "http://localhost:3000"; +export const BACKEND_URL = "http://localhost:5000"; export const EVENT_CONTEXT = createContext(); export const API_CLIENT = new APIClient(BACKEND_URL);