Step 3: Configure and deploy an environment

This page applies to Apigee and Apigee hybrid.

View Apigee Edge documentation.

Configure and deploy an environment that includes the helloworld API proxy.

  1. Create an environment:
    1. Position your cursor over the environments folder in the Apigee section and click Create icon.

      + displays when you position the cursor over environments folder

      The Create environment wizard opens.

    2. Enter dev for the environment name and press Enter.

      The environment is created.

    3. Expand the dev environment folder in the Apigee section to view its contents.

      Environments folder with deployments.json, flowhooks.json, and targetservers.json files

      When you create an environment, a set of four configuration files are included by default in the dev environment folder for configuring your deployment, and any required debug masks, flow hooks, or target servers.

  2. Configure the deployment details for the helloworld API proxy in the environment:
    1. Position your cursor over the deployments.json file in the Apigee section and click Configure icon.

      settings icon displays when you position the cursor over deployments.json folder

      The Deployments wizard opens.

    2. Select the helloworld API proxy to add it to the deployment and click OK.

    The deployments.json file is opened in the editor. The file has been updated to include the helloworld API proxy in the proxies deployment array, as shown below:

    {
      "proxies": [
         "helloworld"
      ],
      "sharedflows": []
    }
  3. Deploy the dev environment:
    1. Position your cursor over the dev environment folder in the Apigee section and click Deploy icon.

      Deploy icon displays when you position the cursor over dev environment folder

    The dev environment is deployed and the following information is displayed in the Output tab:

    Environment dev deployed successfully with revision 1
    

    The helloworld deployed application information is displayed in the Apigee Emulators section, as shown below.

    Apigee Emulator showing deployed helloworld application and active test resources

Congratulations! You've deployed your first API proxy application. In the next step, you'll test the API proxy using curl.

1 2 3 (NEXT) Step 4: Test your API 5 6 7 8