This simple project is based on this couchbase lab.
- Couchbase Client
- FluentAssertions
- Xunit
NB: if you under Ubuntu, most probably, you have to use sudo for each docker command. We have used: Docker version: 20.10.17 and bash version: 4.4.20.
- Download and run couchbase docker image
docker run -d --name couchmusic -p 8091-8096:8091-8096 \
-p 11210-11211:11210-11211 \
registry.gitlab.com/couchbasesamples/couchbase-training:1.5
- Once container is created, take note its CONTAINER ID, in this example: 625ac7047fd3
docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
625ac7047fd3 registry.gitlab.com/couchbasesamples/couchbase-training:1.5 "/entrypoint.sh couc…" 8 seconds ago Up 6 seconds 0.0.0.0:8091-8096->8091-8096/tcp, :::8091-8096->8091-8096/tcp, 11207/tcp, 0.0.0.0:11210-11211->11210-11211/tcp, :::11210-11211->11210-11211/tcp, 18091-18096/tcp couchmusic
- Go to CouchbaseSimpleAPI/src folder and copy script folder into container
docker cp script/ 625ac7047fd3:/script/
- Enter in bash mode
docker exec -t -i 625ac7047fd3 /bin/bash
- Run the script (Please wait! 'cause it would take a while!)
./script/runme.sh
- Once it has terminated, press ctrl-p and ctrl-q and go to couchbase web console main page
http://localhost:8091/ui/index.html
- Insert "Administrator" + "password" and check if all is properly created.
Last thing: before doing anything, wait for all the buckets to be green and available!
- Complete APIs
- Add more tests
This project is licensed under the MIT License - see the LICENSE file for details