Edit on GitHub
Report issue
Page history

Author(s): @{[ username ]}  Published: {[ TutorialCtrl.tutorial.date_published | date:'mediumDate' ]}

title: Run Node.js Parse server on Google App Engine Flexible Environment description: Learn how to run a Node.js Parse server on Google App Engine flexible environment. author: jmdobry tags: App Engine, Node.js, Parse-server date_published: 2017-11-02

Tutorial for deploying a Parse Server to Google App Engine.

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.


  1. Create a project in the Google Cloud Platform Console.
  2. Enable billing for your project.
  3. Install the Google Cloud SDK.
  4. Prepare your environment for Node.js development

Create a MongoDB database

There are multiple options for creating a new MongoDB database. For example:

  • Create a Google Compute Engine virtual machine with MongoDB pre-installed.
  • Use mLab to create a free MongoDB deployment on Google Cloud Platform.

Download and run the app

  1. Clone the parse-server example app and change directory to it:

    git clone https://github.com/parse-community/parse-server-example.git
    cd parse-server-example
  2. Install dependencies:

    npm install
  3. Run the app locally:

    APP_ID=your-app-id DATABASE_URL=your-mongodb-uri MASTER_KEY=your-master-key npm start

Deploy the app

  1. Make sure your app.yaml file looks something like this (update the variables with your own values):

    ```yaml runtime: nodejs env: flex

    env_variables: # --REQUIRED-- DATABASE_URI: mongodb://localhost:27017/dev APP_ID: YOUR_APP_ID MASTER_KEY: YOUR_MASTER_KEY SERVER_URL: https://YOUR_PROJECT_ID.appspot.com/parse # --OPTIONAL-- # FILE_KEY: YOUR_FILE_KEY # PARSE_MOUNT: /parse # CLOUD_CODE_MAIN: ```

  2. Run the following command to deploy your app:

    gcloud app deploy
  3. View the deployed app:

    gcloud app browse
See more by @{[ username ]} and more tagged {[ tag ]}{[ $last ? '' : ', ' ]}

Submit a Tutorial

Share step-by-step guides


Request a Tutorial

Ask for community help


GCP Tutorials

Tutorials published by GCP


Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates.