demo.mp4
This is a real-time chat application built with React and Appwrite. It provides features like user authentication, message sending, and real-time updates using Appwrite.
- Real-Time Messaging: Users can send and receive messages instantly.
- User Authentication: Secure user login and registration.
- Message Management: Users can delete their own messages.
- Responsive Design: Optimized for both desktop and mobile devices.
- Run npm install to install dependencies
- Sign in to your Appwrite console.
- Create a new project.
- Set up a database and a collection for messages.
- Note down the following IDs: Database ID, Project ID, Collection ID for Messages
Create a file named .env in the root directory of your project and add the following Appwrite configuration:
-
VITE_API_ENDPOINT=https://[YOUR_APPWRITE_ENDPOINT]
-
VITE_PROJECT_ID=[YOUR_PROJECT_ID]
-
VITE_DATABASE_ID=[YOUR_DATABASE_ID]
-
VITE_COLLECTION_ID_MESSAGES=[YOUR_COLLECTION_ID_MESSAGES]
-
Run npm run dev to launch the local server