This project is a real-time chat API built using NestJS and Redis, designed to serve as a backend for a chat application. It uses WebSockets to enable real-time communication between users and includes features like storing messages in Redis.
- Real-time messaging using WebSockets
- Message storage in Redis
- Simple user management
- JWT Authentication
Follow these instructions to set up and run the project.
- Node.js (>= 14.x)
- Redis server
- Clone the repository:
git clone https://github.com/yourusername/simple-chat-api.git cd simple-chat-api - Install dependencies:
npm install
- Set up Redis to run on your local machine.
- Run the development server:
npm run start:dev
The API runs on http://localhost:3000. You can connect via a WebSocket client to /chat to send and receive messages.
- Understand how to set up a NestJS application with WebSockets.
- Learn how to integrate Redis for real-time data storage and retrieval.
- Develop a simple chat application architecture.
- Your Name
MIT