A real-time messaging application built using the MERN stack (MongoDB, Express.js, React.js, Node.js) and Socket.IO. This app allows users to sign up, log in, and communicate in real time with others in private chats.
-
Authentication: Secure user signup and login using JWT (JSON Web Token).
-
Real-Time Messaging: Instant communication powered by Socket.IO.
-
User Management: Users can view and update their profiles.
-
Responsive Design: Fully responsive UI for seamless use across devices.
-
Persistent Data: Chat history stored in MongoDB.
-
React.js
-
Tailwind CSS (for styling)
-
Axios (for API requests)
-
Socket.IO Client
-
Node.js
-
Express.js
-
Socket.IO
-
MongoDB (with Mongoose for database management)
-
bcrypt.js (for password hashing)
-
JWT (for authentication)
-
dotenv (for environment variable management)
-
Users sign up or log in.
-
Authentication is handled using JWT.
-
Real-Time Communication:
-
Upon login, users are connected to the Socket.IO server.
-
Messages are transmitted in real time between users.
-
User and message data are stored in MongoDB.
-
Chats are persisted and available even after a page refresh.
git clone <repository-url>t
cd Chattikko
For the server:
cd backend
npm install
For the frontend:
cd frontend
npm install
Start the server:
cd backend
npm run dev
Start the client:
cd frontend
npm run dev
5.Access the Application Open your browser and go to http://localhost:5173 to view your blog website.
If you want to see the project live go to https://chattikko.onrender.com
email
= [email protected]
password
= 123456
To run this project, you will need to add the following environment variables to your .env file
PORT
=5000
MONGO_URI
=
JWT_SECRET
=
CLOUDINARY_NAME
= <your-CLOUDINARY_NAME>
CLOUDINARY_API_KEY
= <your-CLOUDINARY_API_KEY>
CLOUDINARY_API_SECRET
= <your-CLOUDINARY_API_SECRET>
NODE_ENV
= development