A modern, real-time chat application frontend built with Next.js, React, and Tailwind CSS. This app allows users to join chat rooms, send and receive messages instantly, and experience a responsive, themeable UI.
- Join chat rooms with a username and room ID
- Real-time messaging using WebSockets
- Persistent user and room session (via sessionStorage)
- Responsive and accessible UI
- Light and dark theme support
- Built with Next.js, React, and Tailwind CSS
- Node.js (v18 or newer recommended)
- npm or yarn
- Clone the repository:
git clone <repo-url> cd roomfrontend
- Install dependencies:
npm install # or yarn install
npm run dev
# or
yarn devOpen http://localhost:3000 in your browser to see the app.
npm run build
npm startapp/— Next.js app directory (pages, layout, global styles)components/— Reusable UI components (chat panel, join form, etc.)
- Update WebSocket server URL in
app/page.tsxif your backend runs elsewhere. - Tailwind CSS and theme settings can be customized in
tailwind.config.tsandapp/globals.css.
Haarush