nellikhvan / couchbase-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

couchbase-example

  1. Install a Couchbase Server. Couchbase server will be running on http://localhost:8091.
  • Create bucket couchbase
  • Create full text index couchbase
  1. Install Node.js

  2. Make a directory, clone this repo, install dependencies, start the application. Run this command to install dependencies

    npm install
  3. Run npm run build to fill couchbase with data from assets.js file

  4. Start the application. From a terminal:

    npm run start

  5. Endpoint available at http://localhost:8080/api/?search=test

  6. The expected response presented in json format:

    {
        "name": "Test",
        "description": "Test"
    }
    

About


Languages

Language:JavaScript 100.0%