A real-time MERN stack chatbot π€ powered by Socket.io for instant messaging. This application ensures secure authentication, encrypted passwords, and seamless frontend-backend communication for a smooth user experience. π
- πΉ Real-time messaging with Socket.io
- πΉ Secure authentication with protected routes
- πΉ Encrypted passwords using bcrypt.js π
- πΉ Seamless frontend-backend communication with CORS
- πΉ API testing with Postman
- πΉ Responsive and user-friendly UI π¨
- Frontend: React.js βοΈ, CSS π¨
- Backend: Node.js, Express.js π
- Database: MongoDB Atlas π¦, Mongoose
- Real-time Communication: Socket.io β‘
- Authentication & Security: bcrypt.js π, JWT
- API Testing: Postman
- User Registration & Login π
- Users sign up with a secure authentication process.
- Passwords are encrypted using bcrypt.js.
- Real-time Chatting π¬
- Users can send and receive messages instantly via Socket.io.
- Messages are stored securely in MongoDB Atlas.
- Security & Protection π‘οΈ
- Protected routes ensure only authenticated users access chat.
- CORS handles seamless frontend-backend interaction.
-
Clone the repository
git clone https://github.com/yourusername/chatbot-app.git cd chatbot-app -
Install dependencies
# For backend cd server npm install # For frontend cd ../client npm install
-
Set up environment variables
- Create a
.envfile in theserverdirectory and add:MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
- Create a
-
Run the application
# Start backend server cd server npm start # Start frontend cd ../client npm start
-
Access the app
- Open
http://localhost:3000in your browser.
- Open