The Node.js Starter demonstrates a simple, reusable Node.js web application based on the Express framework.
- Install Node.js
- Download and extract the starter code from the Bluemix UI
- cd into the app directory
- Run
npm install
to install the app's dependencies - Run
npm start
to start the app - Access the running app in a browser at http://localhost:6001
- running locally: VCAP_SERVICES
- nahovno_db - CloudantDB name
- JWT_SECRET_KEY - random
curl -H POST -u xxxxx:xxxxx -d '{ "index": { "fields": ["userid", "timestamp"] }, "name" : "userid-index", "type" : "json" }' https://xxxxx.cloudant.com/nahovno/_index