RealChat is a chat application build with Node.js and Typescript. It provides a real-time chat platform for users to chat with each other. RealChat supports both private and group chat conversations.
- Authentication using JWT tokens.
- Real time private chat.
- Real time group chat.
- Black theme support.
-
Clone the repo
git clone https://github.com/ramesh-km/messaging-app.git
-
Provide the environment variables
Backend
backend/.env
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=public" JWT_SECRET=randomsecretstring PORT=8080 SENDGRID_API_KEY=sendgridapikey FRONTEND_URL=http://localhost:5173 SENDGRID_FROM_EMAIL=send-from-email NODE_ENV=development
Frontend
frontend/.env
VITE_APP_TITLE="Chat Application" VITE_API_URL=http://localhost:8080/api/v1 VITE_SOCKET_URL=http://localhost:8080
-
Run the docker-compose file
docker-compose up
-
Open the browser and go to
http://localhost
- Reactjs & Vite
- Mantine
- Tanstack Query and React router
- Zod
- Socket.io client
- Nodejs/Expressjs
- Socket.io
- Prisma
- jsonwebtokens, pino, zod, swagger