Skip to content

A realtime chat app built using Next.js, Socket.io and Typescript

License

Notifications You must be signed in to change notification settings

devaaravmishra/chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat-app

A Realtime Chat Application built using Node.js, Express, Socket.io, and Next.js


Getting Started

First, run the backend server:

npm run dev

# or

yarn dev

Then, run the frontend server:

npm run dev

# or

yarn dev

Built With

  • 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

Backend

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.

join

Emitted when a user joins a room.

Payload
{
	roomId: string;
}

send message

Emitted when a user sends a new message.

Payload
{
	time: string;
	roomId: string;
	message: string;
}

create new room

Emitted when a user creates a new room.

Payload
{
	roomName: string;
}

Screenshots

screenshot_1 screenshot_2 screenshot_3


License

This project is licensed under the MIT License - see the LICENSE.md file for details