google-cloud-datastore-tutorial icon indicating copy to clipboard operation
google-cloud-datastore-tutorial copied to clipboard

Running node tutorial.js

Open jeremykeen opened this issue 9 years ago • 5 comments

Where are you instructing the user to run the tutorial code? I tried to get the pre-reqs running on my Mac. It would be great to walk the user through deploying a vm instance in Google cloud rather than locally.

jeremykeen avatar Sep 28 '16 14:09 jeremykeen

Ok got it going? Perhaps I do a pull with Mac install using Homebrew?

jeremykeen avatar Sep 29 '16 17:09 jeremykeen

jkeenest-am I stuck at the same part you are/were? the npm install and run script?

eprphotontest avatar Oct 27 '16 05:10 eprphotontest

Hey all, sorry for the delay on this. I would suggest making sure you run through all the instructions in the README to run things locally. That should have everything you need to get spun up. You don't have to run this on a remote server, especially during testing.

When you're ready to have something that runs on a remote server, there are tons of options you can consider. One of the easiest is to use Heroku to deploy your Node app. Let me know if you need more details/have more questions

jme783 avatar Oct 27 '16 16:10 jme783

Hi done everything but get error messages: Any help? Thanks

Pedotech avatar Dec 01 '17 01:12 Pedotech

MessagesPedros-iMac-2:google-cloud-datastore-tutorial pedrocorreia$ node tutorial.js Authenticating with Google Cloud... module.js:538 throw err; ^

Error: Cannot find module 'google-cloud' at Function.Module._resolveFilename (module.js:536:15) at Function.Module._load (module.js:466:25) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object. (/Users/pedrocorreia/google-cloud-datastore-tutorial/tutorial.js:13:14) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3)

Pedotech avatar Dec 01 '17 01:12 Pedotech