feat: update server documentation for PostgreSQL support and authentication details

This commit is contained in:
Gabriel20xx committed 2026-08-01 19:57:47 +02:00
1 parent 14a7348632
commit a52ded8936
1 file changed
+7 -8
+7 -8
View File
@@ -32,12 +32,11 @@ CollabTable allows multiple users to collaboratively create and manage lists wit
### Server ### Server
- 🚀 **Express.js REST API** with TypeScript - 🚀 **Express.js REST API** with TypeScript
- 🐳 **Fully containerized** with Docker - 🐳 **Fully containerized** with Docker
- 💾 **Flexible database** support: SQLite or PostgreSQL - 💾 **PostgreSQL** database (bring your own instance)
- 🔄 **Advanced sync protocol** for conflict resolution - 🔄 **Advanced sync protocol** for conflict resolution
- 🔌 **WebSocket support** for real-time updates - 🔌 **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 - 📊 **Complete CRUD operations** for all entities
- 💽 **Persistent storage** with Docker volumes
## Prerequisites ## Prerequisites
@@ -94,7 +93,8 @@ then generate an API token from the dashboard's Settings page for your sync clie
- Enter your server URL: - Enter your server URL:
- **For emulator:** `http://10.0.2.2:3000/api/` - **For emulator:** `http://10.0.2.2:3000/api/`
- **For physical device:** `http://YOUR_COMPUTER_IP: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" - Tap "Save"
**Note:** Make sure to include the trailing `/api/` in the URL. **Note:** Make sure to include the trailing `/api/` in the URL.
@@ -125,7 +125,6 @@ CollabTable/
│ ├── routes/ # API endpoints │ ├── routes/ # API endpoints
│ └── index.ts # Server entry point │ └── index.ts # Server entry point
├── webui/ # SvelteKit web dashboard (read-only database viewer) ├── webui/ # SvelteKit web dashboard (read-only database viewer)
├── data/ # SQLite database storage
├── Dockerfile ├── Dockerfile
└── README.md └── README.md
``` ```
@@ -146,7 +145,7 @@ CollabTable/
- **Framework:** Express.js - **Framework:** Express.js
- **Language:** TypeScript - **Language:** TypeScript
- **Database:** PostgreSQL (pg) - **Database:** PostgreSQL (pg)
- **Containerization:** Docker & Docker Compose - **Containerization:** Docker
- **Real-time:** WebSocket support - **Real-time:** WebSocket support
## API Endpoints ## 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/` - Emulator: Use `http://10.0.2.2:3000/api/`
- Physical device: Use your computer's IP address - Physical device: Use your computer's IP address
- Ensure trailing `/api/` is included in URL - 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** **Gradle sync failed**
- Update Android Studio to latest version - Update Android Studio to latest version
@@ -521,7 +520,7 @@ Contributions are welcome! Here's how you can help:
**Testing** **Testing**
- Test your changes on both emulator and physical devices (Android) - 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 - Verify sync works correctly with multiple clients
- Test with large datasets to ensure performance - Test with large datasets to ensure performance