Is it possible to develop a Google App Engine web app using Node.js or some other server side JavaScript approach?

后端 未结 5 1779
逝去的感伤
逝去的感伤 2020-12-24 08:19

I\'ve been following the latest developments with server-side JavaScript - especially Node.js - and wondering if there is any possibility of using such an approach to develo

5条回答
  •  佛祖请我去吃肉
    2020-12-24 08:59

    Now the best option is to use Google Compute Engine and Datastore > link here

    You can use Google Compute Engine to host your node.js app and use google-api-nodejs-client to connect to the datastore:

    1. You need to create a project in Google API Console, and activate Compute Engine service for it
    2. You have to enable Google Cloud Datastore API (see link above)
    3. You need to set your dataset-id (same identifier as your Google Cloud Project ID).
    4. You need to be connected to a Compute Engine instance with both the datastore and userinfo.email scopes (node.js support for certificate-based service accounts is not yet implemented).
    5. You need a working node.js environment in your Compute Engine machine.
    6. npm install google-api-nodejs-client in your administration command-line tool

    And you should be ready to go

提交回复
热议问题