Skip to content

Commit daabf9b

Browse files
Merge pull request matteobortolazzo#52 from biapar/patch-1
Update README.md
2 parents 2635f08 + 8315897 commit daabf9b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ The produced Mango JSON:
9292
## Getting started
9393

9494
* Install it from NuGet: [https://www.nuget.org/packages/CouchDB.NET](https://www.nuget.org/packages/CouchDB.NET)
95-
* Create a client:
95+
* Create a client, where localhost will be the IP address and 5984 is CouchDB standard tcp port:
9696
```csharp
97-
using(var client = new CouchClient("http://localhost")) { }
97+
using(var client = new CouchClient("http://localhost:5984")) { }
9898
```
9999
* Create a document class:
100100
```csharp
@@ -255,23 +255,23 @@ If authentication is needed currently there are two ways: Basic and Cookie authe
255255
### Basic authentication
256256

257257
```csharp
258-
var client = new CouchClient("http://localhost", s =>
258+
var client = new CouchClient("http://localhost:5984", s =>
259259
s.UseBasicAuthentication("root", "relax")
260260
)
261261
```
262262

263263
### Cookie authentication
264264

265265
```csharp
266-
var client = new CouchClient("http://localhost", s => s
266+
var client = new CouchClient("http://localhost:5984", s => s
267267
.UseCookieAuthentication("root", "relax")
268268
)
269269
```
270270

271271
It's also possible to specify the duration of the session.
272272

273273
```csharp
274-
var client = new CouchClient("http://localhost", s => s
274+
var client = new CouchClient("http://localhost:5984", s => s
275275
.UseCookieAuthentication("root", "relax", cookieDuration)
276276
)
277277
```
@@ -281,7 +281,7 @@ var client = new CouchClient("http://localhost", s => s
281281
The second parameter of the client constructor is a function to configure CouchSettings fluently.
282282

283283
```csharp
284-
var client = new CouchClient("http://localhost", s => s
284+
var client = new CouchClient("http://localhost:5984", s => s
285285
.UseBasicAuthentication("root", "relax")
286286
.DisableEntitisPluralization()
287287
....
@@ -360,4 +360,4 @@ Action<ClientFlurlHttpSettings> flurlConfigFunc
360360

361361
## Contributors
362362

363-
Thanks to [Ben Origas](https://github.com/borigas) for features, ideas and tests like SSL custom validation, multi queryable, async deadlock, cookie authenication and many others.
363+
Thanks to [Ben Origas](https://github.com/borigas) for features, ideas and tests like SSL custom validation, multi queryable, async deadlock, cookie authenication and many others.

0 commit comments

Comments
 (0)