Skip to content
Merged
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
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,21 @@ 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 read the environment variables from a local file, `dev.env` in the `config` folder.
All configuration for communication with the database is read from the environment variables. We have provided convenience env templates in the `config` folder for both local app runs and the Jest suite.

```sh
cp config/dev.env.example config/dev.env
Comment thread
dex-the-ai marked this conversation as resolved.
cp config/test.env.example config/test.env
```

Then update `config/dev.env` and `config/test.env` with your cluster details:

```sh
DB_CONN_STR=<connection_string>
DB_USERNAME=<user_with_read_write_permission_to_travel-sample_bucket>
DB_PASSWORD=<password_for_user>
DB_BUCKET_NAME=travel-sample
APP_PORT=3000
Comment thread
dex-the-ai marked this conversation as resolved.
```

> Note: The connection string expects the `couchbases://` or `couchbase://` part.
Expand Down
2 changes: 0 additions & 2 deletions config/dev.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ DB_CONN_STR=couchbases://<identifier>.cloud.couchbase.com
DB_USERNAME=
DB_PASSWORD=
DB_BUCKET_NAME=travel-sample
IS_CAPELLA=true
APP_PORT=3000
DELAY=5000
2 changes: 0 additions & 2 deletions config/test.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ DB_CONN_STR=couchbases://<identifier>.cloud.couchbase.com
DB_USERNAME=
DB_PASSWORD=
DB_BUCKET_NAME=travel-sample
IS_CAPELLA=true
APP_PORT=3000
DELAY=5000
Loading
Loading