Skip to content

Commit

Permalink
Merge pull request #9 from couchbaselabs/update-env-instructions
Browse files Browse the repository at this point in the history
Updating `.env` instructions in README
  • Loading branch information
ejscribner authored Jan 3, 2022
2 parents 802d639 + 701377e commit d2033a5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,29 @@ Follow instructions to Setup a new cluster and once the database is running, [in

## Prepare Our Project Folder

We can bootstrap our application. Create a directory and clone the repository on GitHub.
We can bootstrap our application. Create a directory and clone the repository from GitHub.

### Development Guide

1 Clone this repo and install dependencies
1. Clone this repo and install dependencies

```bash
git clone https://github.com/couchbaselabs/try-ottoman.git
cd try-ottoman
yarn install
```

3 Run the API example
2. Set up Environment Variables
- Copy the `.env.example` to a new file called `.env`
```
cp .env.example .env
```
- Set the appropriate variables in the `OTTOMAN_CONNECTION_STRING`:
- The format of the connection string is: `couchbase://<cluster_ip>:<cluster_port>/<bucket_name>@<username>:<password>`
- The connection string in `.env.example` will work for a locally hosted Couchbase cluster with username `Administrator` and password `password`. Change the string as needed to fit your cluster.
- This API uses the `travel-sample` bucket, which you'll need to add to your cluster for proper functionality. [Learn more about installing sample buckets here.](https://docs.couchbase.com/server/current/manage/manage-settings/install-sample-buckets.html)
3. Run the API example
```bash
yarn start
Expand Down

0 comments on commit d2033a5

Please sign in to comment.