Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.19)

project(CxxQuickStart CXX)
find_package(fmt REQUIRED)
include(cmake/CPM.cmake)

set(CMAKE_CXX_STANDARD 17)
Expand All @@ -16,9 +15,9 @@ CPMAddPackage(
NAME
couchbase_cxx_client
GIT_TAG
1.0.5
1.3.1
VERSION
1.0.5
1.3.1
GITHUB_REPOSITORY
"couchbase/couchbase-cxx-client"
OPTIONS
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To run this prebuilt project, you will need:

- [Couchbase Capella](https://www.couchbase.com/products/capella/) cluster or a self managed Couchbase cluster with [travel-sample](https://docs.couchbase.com/python-sdk/current/ref/travel-app-data-model.html) bucket loaded.

- [CMake](https://cmake.org/) 3.9 or higher installed
- [CMake](https://cmake.org/) 3.19 or higher installed
- [C++17](https://en.cppreference.com/w/cpp/17) and a compatible compiler, [clang++](https://clang.llvm.org/) or [g++](https://gcc.gnu.org/)
- Loading Travel Sample Bucket
If travel-sample is not loaded in your cluster, you can load it by following the instructions:
Expand All @@ -50,7 +50,7 @@ Specifically, you need to do the following:
- Create the [database credentials](https://docs.couchbase.com/cloud/clusters/manage-database-users.html) to access the travel-sample bucket (Read and Write) used in the application.
- [Allow access](https://docs.couchbase.com/cloud/clusters/allow-ip-address.html) to the Cluster from the IP on which the application is running.

All configuration for communication with the database is read from the environment variables. We have provided a convenience feature in this quickstart to setup the required environment variables using a shell script `setup_env_vars.sh`. Change the values of the following lines:
All configuration for communication with the database is read from the environment variables. We have provided a convenience feature in this quickstart to set the required environment variables using the shell script `set_env_vars.sh`. Change the values of the following lines:

```sh
export DB_CONN_STR=<connection_string>
Expand All @@ -64,7 +64,7 @@ export COL_NAME=<collection_name>

Run the command:
```sh
source setup_env_vars.sh
source set_env_vars.sh
```
This will set the environment variables for that session.

Expand Down Expand Up @@ -101,7 +101,7 @@ Once you run the executable, your terminal should fill up with the results of th

### Running Tests

For running tests, a self-managed cluster is required with travel-sample bucket loaded or you need to update the connection details in the `tests/test.cpp` file. To run the tests, use the following command from the build directory:
For running tests, a self-managed cluster is required with travel-sample bucket loaded or you need to update the connection details in the `tests/tests.cpp` file. To run the tests, use the following command from the build directory:

```sh
./tests/u_tests
Expand Down