Is the "reference application" obsolete?

I was reading about the reference application, but it doesn’t seem to work. Is this obsolete? Here’s what I’ve done:

  • Installed the CB Server Enterprise Edition on my Mac running OS X 11
  • Started the server
  • mkdir ~/try-cb
  • git clone https://github.com/couchbaselabs/try-cb-nodejs.git ~/try-cb
  • `cd ~/try-cb
  • npm run start

I got errors:

module.js:327
throw err;
^

Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/mlm/try-cb/app.js:1:77)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

`

Ember.js is a dependency of the project, so I wonder if it needs an npm install just before the npm run start step… @tgreenstein any insight?

Not necessarily related, but make sure you edit the config.json file at the root of the project to correctly connect to an exiting Couchbase cluster :wink:

I think Ember got installed as part of indicated npm. But to make sure, what would I install? There are several hundred packages beginning with “ember”

There is no config.json in cb-try, just a package.json.

Thanks for your help.

If I had looked in the package.json I would have found @tgreenstein and could have emailed him directly instead of posting here.

The travel application is described in two places. One shows this:

$ sudo npm install node-gyp -g $ nam install

The other doesn’t…

With these additional commands the Sync Gateway does start and shows that it’s running on port 3000.

`