- Install a Couchbase Server. Couchbase server will be running on
http://localhost:8091
.
- Create bucket
couchbase
- Create full text index
couchbase
-
Install Node.js
-
Make a directory, clone this repo, install dependencies, start the application. Run this command to install dependencies
npm install
-
Run
npm run build
to fill couchbase with data from assets.js file -
Start the application. From a terminal:
npm run start
-
Endpoint available at http://localhost:8080/api/?search=test
-
The expected response presented in json format:
{ "name": "Test", "description": "Test" }