Skip to content

Installation

Iryna V-N edited this page Jul 2, 2024 · 4 revisions

Installation

Prerequisites

  • Node.js
  • npm
  • MongoDB

Steps

  1. Clone the repository:

    git clone https://github.com/Iryna-Vyshniak/real-time-chat-app.git
    cd real-time-chat-app
  2. Install dependencies

    npm install
    cd frontend
    npm install
  3. 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
  1. Start the development server:

    npm run server
    cd frontend
    npm run dev
  2. Open your browser and navigate to http://localhost:3000

Clone this wiki locally