This is a chat app made using Nextjs,TypeScript, Node and Socket.io
- User can join Chat Room by entering their name
- Multiple Users can join the chat room and start chatting
- Sender's username and timestamp visible with every message
This project utilizes ESLint for code quality maintenance. Ensure coding standards by following the recommended formatting guidelines.
Clone the repository:
git clone https://github.com/UtkarshAhuja2003/chat.gitNavigate to the project folder:
cd chat- Install dependencies in root folder
npm install- Copy sample env to .env
cp .env.sample .envChange URL and port if changed in frontend 3. Start the server
npm start- Check lint errors
npm run lint- Navigate to client directory
cd client- Install dependencies in client
npm install- Copy sample env to .env
cp .env.sample .env- Start the nextjs app in development
npm run dev- Check lint errors
npm run lintNow your Project is ready to run.
.
├──src # backend
├── controllers # route controller
├── routes # Custom routes
├── socket # Socket Initialisation
├── validators
├── utils # Misc tools and stuffs
│ ├── APIError
│ ├── Async Handler
│ └── APIResponse
├── app.js
├── index.js # entry file
└── constant.js
└── client # frontend directory
├── src
│ ├── api
│ ├── app
│ │ ├── chat #page
│ │ └── login #page
│ ├── components
│ │ ├── Connection
│ │ └── Message
│ ├── context
│ ├── interfaces
│ └── utils # Misc tools and stuffs
└── public





