Run a LoopBack Node.js app on App Engine flexible environment
Contributed by Google employees.
You can check out Node.js and Google Cloud to get an overview of Node.js itself and learn ways to run Node.js apps on Google Cloud.
- Create a project in the Cloud Console.
- Enable billing for your project.
- Install the Cloud SDK.
- Prepare your environment for Node.js development
Prepare the app
Install the LoopBack command-line interface:
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