A real-time chat application built with Express.js, Node.js, React, Socket.io, and MongoDB.
- Node.js
- npm
- MongoDB (local or Atlas)
- Git
- Cloudinary account
- Email account for notifications
-
Create a
.envfile in the backend directory with:DB_URL=your_mongodb_connection_string EMAIL_USER=your_email_address EMAIL_PASS=your_email_app_password FRONTEND_URL=the_frontend_url JWT_SECRET=your_jwt_secret CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name CLOUDINARY_API_KEY=your_cloudinary_api_key CLOUDINARY_SECRET=your_cloudinary_api_secret -
Create a
.envfile in the frontend directory with:VITE_BACKEND_URL=the_backend_url
-
Clone the repository:
git clone https://github.com/eswar-7116/NexusChat.git cd NexusChat -
Create environment file: Create a
.envfile in the project's backend and frontend directories with the environment variables listed above. -
Install dependencies and build the project:
npm run setup
-
Start the server:
npm run dev
-
Access the application:
- Frontend: http://localhost:5173
-
Clone the repository:
git clone https://github.com/eswar-7116/NexusChat.git cd NexusChat -
Create environment file: Create a
.envfile in the project's backend and frontend directories with the environment variables listed above. -
Build and run with Docker:
docker build -t nexuschat . docker run -p 10000:10000 --env-file ./backend/.env nexuschat -
Access the application:
- Application: http://localhost:10000