A bridge from those who need to run Couchbase Lite on delphi
- You have Couchbase Server Installation
- You have installed Couchbase sync gateway
- Based on https://github.com/Branor/DelphiCouchbaseInterop
- Needed for the delphi project to work - not crucial for the CouchbaseLite wrapper.
- In the code - localhost for syncGateway.
- Compile the dotNet project (the CouchbaseLiteManager)
- Copy the product of the compilation to a safe place
- register the dll (%Windir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe /codebase /pathToDll /tlb)
- Import Component to the Delphi project, choose create unit.
- in the config.json, change the syncgatewayAddress to you syncgateway Address (for dev, usually localhost)
- run SyncGateway -> from installation directory "Sync_gateway.exe config.json"
- Don't forget to CoInitialize and Uninitialize when needed.