feat: update server documentation for PostgreSQL support and authentication details
This commit is contained in:
1 parent
14a7348632
commit
a52ded8936
1 file changed
+7
-8
@@ -32,12 +32,11 @@ CollabTable allows multiple users to collaboratively create and manage lists wit
|
||||
### Server
|
||||
- 🚀 **Express.js REST API** with TypeScript
|
||||
- 🐳 **Fully containerized** with Docker
|
||||
- 💾 **Flexible database** support: SQLite or PostgreSQL
|
||||
- 💾 **PostgreSQL** database (bring your own instance)
|
||||
- 🔄 **Advanced sync protocol** for conflict resolution
|
||||
- 🔌 **WebSocket support** for real-time updates
|
||||
- 🔐 **Optional authentication** with shared password
|
||||
- 🔐 **Single-admin-account dashboard login** (session cookie) plus long-lived API tokens for sync clients/devices
|
||||
- 📊 **Complete CRUD operations** for all entities
|
||||
- 💽 **Persistent storage** with Docker volumes
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -94,7 +93,8 @@ then generate an API token from the dashboard's Settings page for your sync clie
|
||||
- Enter your server URL:
|
||||
- **For emulator:** `http://10.0.2.2:3000/api/`
|
||||
- **For physical device:** `http://YOUR_COMPUTER_IP:3000/api/`
|
||||
- If server has authentication enabled, enter the password
|
||||
- Enter the API token generated from the server dashboard's Settings page (the app's
|
||||
"Server Password" field doubles as the API token field — see note below)
|
||||
- Tap "Save"
|
||||
|
||||
**Note:** Make sure to include the trailing `/api/` in the URL.
|
||||
@@ -125,7 +125,6 @@ CollabTable/
|
||||
│ ├── routes/ # API endpoints
|
||||
│ └── index.ts # Server entry point
|
||||
├── webui/ # SvelteKit web dashboard (read-only database viewer)
|
||||
├── data/ # SQLite database storage
|
||||
├── Dockerfile
|
||||
└── README.md
|
||||
```
|
||||
@@ -146,7 +145,7 @@ CollabTable/
|
||||
- **Framework:** Express.js
|
||||
- **Language:** TypeScript
|
||||
- **Database:** PostgreSQL (pg)
|
||||
- **Containerization:** Docker & Docker Compose
|
||||
- **Containerization:** Docker
|
||||
- **Real-time:** WebSocket support
|
||||
|
||||
## API Endpoints
|
||||
@@ -320,7 +319,7 @@ The actual value for a specific field of an item:
|
||||
- Emulator: Use `http://10.0.2.2:3000/api/`
|
||||
- Physical device: Use your computer's IP address
|
||||
- Ensure trailing `/api/` is included in URL
|
||||
- If server has authentication, verify password is correct
|
||||
- Verify the API token is correct (generate/regenerate one from the dashboard's Settings page)
|
||||
|
||||
**Gradle sync failed**
|
||||
- Update Android Studio to latest version
|
||||
@@ -521,7 +520,7 @@ Contributions are welcome! Here's how you can help:
|
||||
|
||||
**Testing**
|
||||
- Test your changes on both emulator and physical devices (Android)
|
||||
- Test with both SQLite and PostgreSQL backends (Server)
|
||||
- Test against a PostgreSQL backend (Server)
|
||||
- Verify sync works correctly with multiple clients
|
||||
- Test with large datasets to ensure performance
|
||||
|
||||
|
||||
Reference in new issue
Block a user