Giter Club home page Giter Club logo

couchbase-net-beersample's Introduction

couchbase-net-beersample

The official "Beer Sample" example application using the Couchbase .NET SDK 2.0

NOTE: This is an older example that has been updated to work with Couchbase Server 5.0+. However a more complete example that demonstrates additional Couchbase Server features is the Travel Sample.

NOTE: This is not an officially supported Couchbase project.

Authentication

With Role Base Access Control introduced in Couchbase Server 5.0, it is necessary to authenticate the SDK with the cluster using a discrete username and password combination. The username and password can be added in the web.config under the "couchbase" section. If using a Couchbase Server version before RBAC was added, you must leave these values empty.

Couchbase Server URI

The Couchbase Server URI can be updated in the web.config under the "couchbase" section and the default is to use "localhost".

Views

This example uses a custom View definition to list all available beers and will need to be added manually. You can follow these steps to add the definition:

  1. Navigate to the View definitions page in the cluster manager
  2. Copy the Beer design document to development
  3. Add a new view to the Beer design document called "all_beers"
  4. Copy and paste the definition below into the new view definition
  5. Publish the Beers design document, overwriting the existing one if prompted.
function (doc, meta) {
  if (doc.type == "beer") {
    emit(meta.id, doc);
  }
}

couchbase-net-beersample's People

Contributors

jeffrymorris avatar mikegoldsmith avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

couchbase-net-beersample's Issues

Sample not working - boot strap error

When attempting to run this example, I get this error: System.AggregateException: 'Could not bootstrap - check inner exceptions for details.'

Can't locate where the config is for the Cluster in order to verify the connection details. Please help.

image

sample is not working

Fresh instal of couchbase - working
Install and run this sample - not working - does not return any results, only can add news items! Please advise.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.