A Realtime Chat Application built using Node.js, Express, Socket.io, and Next.js
First, run the backend server:
npm run dev
# or
yarn dev
Then, run the frontend server:
npm run dev
# or
yarn dev
- Node.js - JavaScript runtime
- Express - Web framework for Node.js
- Socket.io - Realtime application framework
- Next.js - React framework for production
- React - JavaScript library for building user interfaces
- TypeScript - Typed JavaScript at Any Scale
The backend server is built using Node.js, Express, and Socket.io. It is responsible for handling the socket connections and emitting events to the frontend.
Emitted when a user joins a room.
{
roomId: string;
}
Emitted when a user sends a new message.
{
time: string;
roomId: string;
message: string;
}
Emitted when a user creates a new room.
{
roomName: string;
}
This project is licensed under the MIT License - see the LICENSE.md file for details