Would that be possible to start a Coucbase server through source code or in a way that would allow me to perform my integration tests without having the server installed?
Mon, 01/30/2012 - 05:16
jan
Offline
Joined: 02/15/2011
Groups: None
Hi Bartolomeo,
Depending on the platform you are on, starting Couchbase Server from code should be easy. On Linux/Unix, you should be able to call the regular start scripts, e.g `/etc/init.c/couchbase-server start`. On Mac, we do ship a Mac Application bundle, but all that does is call an internal start script as well. If you are not afraid too dig into the Application bundle, you should be able to call that as well, if not `open Couchbase-Server.app` should do the trick, but it will launch the UI Application for you.
On Windows, I'm afraid I don't know if any of the above is possible.
A further option is using a mock server that we developed internally and that we started using for testing our SDKs: https://github.com/couchbase/CouchbaseMock It isn't fully featured yet, but it should get you over the hump.
Hi Bartolomeo,
Depending on the platform you are on, starting Couchbase Server from code should be easy. On Linux/Unix, you should be able to call the regular start scripts, e.g `/etc/init.c/couchbase-server start`. On Mac, we do ship a Mac Application bundle, but all that does is call an internal start script as well. If you are not afraid too dig into the Application bundle, you should be able to call that as well, if not `open Couchbase-Server.app` should do the trick, but it will launch the UI Application for you.
On Windows, I'm afraid I don't know if any of the above is possible.
A further option is using a mock server that we developed internally and that we started using for testing our SDKs: https://github.com/couchbase/CouchbaseMock It isn't fully featured yet, but it should get you over the hump.
Let us know if you have any more questions.
Cheers
Jan
--