Websocket Chat Application is a real-time chatting application built using Next.js, WebSockets, and Formik. This project demonstrates how to create a simple and interactive chat interface where users can send and receive messages in real-time.
-
Real-time Chatting: Users can send and receive messages in real-time using WebSockets.
-
Simple Interface: The application provides a clean and user-friendly chat interface.
-
Formik Integration: Formik is used for form management and validation.
-
Chakra UI: Chakra UI provides a set of accessible and customizable UI components for the application's design.
-
Clone the repository
-
Navigate to the project folder
-
Install dependencies using
npm install
-
Navigate to the server directory
-
Start the Websocket Server using
node server.js
-
Navigate back to the root folder
-
Start the development server using
npm run dev
-
Open your web browser and go to
http://localhost:3000
to access the Websocket Chat Application.
-
Enter your username and click on "Join" to enter the chat room.
-
Type your message in the input box at the bottom and press "Send" to send the message to the chat.
-
All connected users will see your message in real-time.
-
Next.js: A React framework for building server-side rendered applications.
-
WebSockets: Used for real-time communication between users in the chat.
-
Formik: A popular form management and validation library for React.
-
Chakra UI: A simple and accessible UI component library for React.