web
This commit is contained in:
43
README.md
43
README.md
@@ -4,23 +4,42 @@ Complete WhatsApp automation server with REST API, WebSocket, and SQLite storage
|
||||
|
||||
## Features
|
||||
|
||||
✅ **REST API** - Send messages, retrieve contacts/chats/messages
|
||||
✅ **WebSocket** - Real-time event streaming
|
||||
✅ **SQLite** - Persistent storage for all data
|
||||
✅ **Media Storage** - Automatic media file handling
|
||||
✅ **Authentication** - API key protection
|
||||
✅ **REST API** - Send messages, retrieve contacts/chats/messages
|
||||
✅ **WebSocket** - Real-time event streaming
|
||||
✅ **SQLite** - Persistent storage for all data
|
||||
✅ **Media Storage** - Automatic media file handling
|
||||
✅ **Authentication** - API key protection
|
||||
✅ **QR Code Web UI** - Easy WhatsApp authentication via browser
|
||||
✅ **All Original Commands** - Full command handler support
|
||||
|
||||
## Installation
|
||||
## Quick Start
|
||||
|
||||
### Local Development
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm start
|
||||
```
|
||||
|
||||
Visit `http://localhost:3000/qr` to scan the WhatsApp QR code.
|
||||
|
||||
### Docker Deployment
|
||||
|
||||
```bash
|
||||
#FIRST WORKING VERSION!! Or manually sync later
|
||||
curl -X POST http://localhost:3000/api/sync \
|
||||
-H "X-API-Key: VERY_STRONG_API_KEY_12345" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"contacts":true,"chats":true}'
|
||||
```
|
||||
docker-compose up -d --build
|
||||
```
|
||||
|
||||
Visit `http://your-server:3000/qr` to authenticate WhatsApp.
|
||||
|
||||
## QR Code Authentication
|
||||
|
||||
The server provides a web interface for easy WhatsApp authentication:
|
||||
|
||||
- **URL**: `http://localhost:3000/qr`
|
||||
- **Features**:
|
||||
- Real-time QR code display
|
||||
- Live connection status updates
|
||||
- Auto-refresh on new QR codes
|
||||
- Mobile-friendly design
|
||||
|
||||
The QR code is also printed in the console logs for terminal access.
|
||||
Reference in New Issue
Block a user