Run a Loopback Node.js on Google App Engine Flexible Environment
Google Cloud Community tutorials submitted from the community do not represent official Google Cloud product documentation.
LoopBack is a highly-extensible, open-source Node.js framework that enables you to create dynamic end-to-end REST APIs with little or no coding.
You can check out Node.js and Google Cloud Platform to get an overview of Node.js itself and learn ways to run Node.js apps on Google Cloud Platform.
- Create a project in the Google Cloud Platform Console.
- Enable billing for your project.
- Install the Google Cloud SDK.
- Prepare your environment for Node.js development
Prepare the app
Install the Loopback CLI:
npm install -g loopback-cli
Follow the Loopback Getting Started guide to create a Loopback app.
Deploy the app
app.yamlfile with the following content:
runtime: nodejs env: flex
Run the following command to deploy your app:
gcloud app deploy
View the deployed app:
gcloud app browse