-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Iryna V-N edited this page Jul 2, 2024
·
4 revisions
- Node.js
- npm
- MongoDB
-
Clone the repository:
git clone https://github.com/Iryna-Vyshniak/real-time-chat-app.git cd real-time-chat-app
-
Install dependencies
npm install cd frontend npm install
-
Create
.env
file in the backend directory with the necessary environment variables
PORT=5000
DB_HOST=your_mongo_uri
NODE_ENV=development
JWT_SECRET=your_jwt_secret
CLOUDINARY_CLOUD_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_SECRET_KEY=your_cloudinary_api_secret
-
Start the development server:
npm run server cd frontend npm run dev
-
Open your browser and navigate to
http://localhost:3000