This repository contains a real-time chat application built using NestJS, Redis, MongoDB for the backend, and Next.js for the frontend. It also integrates Jitsi Meet for video conferencing.
- Node.js (version >= 12.0.0)
- Docker (for running Redis and MongoDB containers)
-
Clone the Repository:
git clone <repository-url> cd <repository-folder>
-
Set Up Environment Variables:
- Create a
.env
file in the root directory using.env.example
as a template. - Modify the environment variables as needed, including database connection strings and application ports.
- Create a
-
Start Docker Containers:
- Make sure Docker is installed and running.
- Start Redis and MongoDB containers using Docker Compose:
docker-compose up -d
-
Install Dependencies and Start the Backend Server:
- Navigate to the backend directory:
cd backend
- Install dependencies:
npm install
- Start the backend server:
npm run start:dev
- Navigate to the backend directory:
-
Navigate to the Frontend Directory:
cd frontend
-
Install Dependencies and Start the Frontend Server:
- Install dependencies:
npm install
- Start the frontend server:
npm run dev
- Install dependencies:
- Open your web browser and go to
http://localhost:3000
to access the chat application. - Sign up or log in to start chatting and using video conferencing.
Contributions are welcome! Please fork the repository and submit a pull request with your proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.
- Hat tip to anyone whose code was used
- Inspiration
- etc.
For questions or feedback, please contact Ba.Tran.