A starter/shell app for beginning a node.js/express app using Couchbase
- For quick setup, this starter app is designed to run with a local instance of Couchbase Server running in docker
- Plans to extend to work with a cloud environment in the future.
npm install
to install dependenciesnode index.js
to run on port 3000- Serves app on localhost:3000
- /
- Just a hello world page for now
- /airlines
- Returns 5 documents with
type: "airline"
(limited to 5 for efficiency in testing)
- Returns 5 documents with
- /airlines/:key
- Fetch and return an airline (or any document, for now) by it's key
- If errors occur after
npm install
, it may be necessary to run `npm-rebuild- Note: This may take a few minutes