Skip to content

hritxx/ChatWiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# ChatApp

Welcome to ChatApp! This is a full-featured chat application built using modern web technologies. It leverages React for the frontend, Daisy UI for styling, Socket.IO for real-time communication, MongoDB for database management, Express for the backend server, and JWT for authentication.

## Table of Contents

- [Live Demo](#live-demo)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Folder Structure](#folder-structure)
- [Technologies Used](#technologies-used)
- [Contributing](#contributing)
- [License](#license)

## Live Demo

Check out the live demo of ChatApp [here](https://chatwiz-vw96.onrender.com/).

## Features

- Real-time messaging
- User authentication (JWT)
- Responsive design with Daisy UI
- Persistent chat history with MongoDB
- Typing indicators
- Online status tracking


## Installation

### Prerequisites

Ensure you have the following installed:

- Node.js
- npm (Node Package Manager)
- MongoDB

### Clone the Repository

```bash
git clone https://github.com/hritxx/ChatWiz.git
cd chatapp

Install Dependencies

Server

cd server
npm install

Client

cd ../client
npm install

Environment Variables

Create a .env file in the server directory and add the following environment variables:

PORT=5000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret

Usage

Starting the Server

cd server
npm start

Starting the Client

Open another terminal window and run:

cd client
npm start

The client will be available at http://localhost:3000 and the server at http://localhost:5000.

Folder Structure

chatapp/
├── client/               # React frontend
│   ├── public/
│   └── src/
│       ├── components/
│       ├── contexts/
│       ├── hooks/
│       ├── pages/
│       ├── services/
│       ├── styles/
│       └── App.js
├── server/               # Express backend
│   ├── config/
│   ├── controllers/
│   ├── models/
│   ├── routes/
│   ├── middleware/
│   └── server.js
└── README.md

Technologies Used

Frontend

  • React
  • Daisy UI
  • Socket.IO-client

Backend

  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • Socket.IO
  • JWT (jsonwebtoken)
  • bcryptjs

About

ChatWiz - A chat app built using MERN stack and socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published