https://github.com/ashukr07/chat-app
https://github.com/ashukr07/chat-app
bcryptjs express nodejs react socket-io
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ashukr07/chat-app
- Owner: ashukr07
- Created: 2024-08-24T20:46:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T19:12:43.000Z (over 1 year ago)
- Last Synced: 2025-10-25T02:48:06.107Z (8 months ago)
- Topics: bcryptjs, express, nodejs, react, socket-io
- Language: JavaScript
- Homepage: https://chat-app-wy70.onrender.com
- Size: 750 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat Application
A real-time chat application where users can sign up, log in, and chat with others. This application uses a modern tech stack to provide a seamless user experience with real-time communication features.
## Features
- **User Authentication**: Secure login and signup using username and password.
- **Real-Time Messaging**: Chat with other users in real-time using Socket.IO.
- **Modern UI**: Built with React, Tailwind CSS, and DaisyUI for a responsive and visually appealing frontend.
- **State Management**: Zustand is used for efficient and lightweight state management.
- **Backend**: Node.js, Express, and MongoDB for a scalable and robust backend.
- **Frontend Build Tools**: Vite for fast development and optimized builds.
---
## Tech Stack
### Frontend
- React
- Tailwind CSS
- DaisyUI
- Socket.IO Client
- React Router DOM
- Zustand
### Backend
- Node.js
- Express.js
- MongoDB
- Socket.IO
- bcryptjs for password hashing
- jsonwebtoken for secure authentication
- dotenv for environment variable management
---
## Getting Started
### Prerequisites
- Node.js installed on your system.
- MongoDB running locally or on a cloud service.
### Installation
1. **Clone the repository**:
```bash
git clone https://github.com/your-repo/chat-app.git
cd chat-app
```
2.Install Backend Dependencies:
```bash
npm install
```
3. Install Frontend Dependencies:
```bash
cd ../frontend
npm install
```
4. Configure Environment Variables:
Create a .env file in the root.
```
MONGO_URI=your-mongodb-connection-string
JWT_SECRET=your-secret-key
PORT=5000
```
5. Start the application
- Backend
```bash
npm run server
```
- Frontend
```bash
npm run dev
```