A simple HTML-based tool for testing PouchDB replication with large attachments across different devices and memory constraints.
docker run -d --name couch \
-e COUCHDB_USER=admin \
-e COUCHDB_PASSWORD=pass \
-p 5984:5984 \
-v couch-data:/opt/couchdb/data \
couchdb:3Open your browser and go to: http://localhost:5984/_utils/
- Username: admin
- Password: pass
In Fauxton, create a new database (e.g., media).
In Fauxton:
- Create new documents
- Use the Attachments tab to add images/videos
- Upload your test files with various sizes
Save the replication test code into a file named replicate.html. Then run a quick web server:
Option 1: Python
python3 -m http.server 8080Option 2: Node.js
npx http-server -p 8080Open your browser and go to: http://localhost:8080/replicate.html
- Enter Couch URL:
http://admin:pass@localhost:5984 - Enter DB Name:
media - Adjust batch settings as needed:
batch_size: Number of documents per batchbatches_limit: Maximum number of batches to process
- Click Start pull
- Use the dropdown to pick a document and preview its attachments