Edit on GitHub
Report issue
Page history

Run Node.js Parse server on App Engine flexible environment

Author(s): @jmdobry ,   Published: 2017-11-02

Contributed by Google employees.

Tutorial for deploying a Parse Server to the App Engine flexible environment.

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.


  1. Create a project in the Cloud Console.
  2. Enable billing for your project.
  3. Install the 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 Compute Engine virtual machine with MongoDB pre-installed.
  • Use mLab to create a free MongoDB deployment on Google Cloud.

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):

    runtime: nodejs
    env: flex
      # --REQUIRED--
      DATABASE_URI: mongodb://localhost:27017/dev
      SERVER_URL: https://YOUR_PROJECT_ID.appspot.com/parse
      # --OPTIONAL--
      # PARSE_MOUNT: /parse
  2. Run the following command to deploy your app:

    gcloud app deploy
  3. View the deployed app:

    gcloud app browse

Submit a tutorial

Share step-by-step guides

Submit a tutorial

Request a tutorial

Ask for community help

Submit a request

View tutorials

Search Google Cloud tutorials

View tutorials

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.