Oracle by Example brandingDeploying a Node.js Microservice Application in Oracle Developer Cloud Service

section 0Before You Begin

This 10-minute tutorial shows you how to deploy a Node.js microservice application to Oracle Application Container Cloud Service from Oracle Developer Cloud Service.

Background

Oracle Developer Cloud Service can deploy Node.js applications to Oracle Application Container Cloud Service.

In this tutorial, you create a deployment configuration that deploys the Node.js application that you built in the Building a Node.js Microservice Application in Oracle Developer Cloud Service OBE.

What Do You Need?

section 3Deploy the Node.js Application to Oracle Application Container Cloud Service

  1. In a web browser, log on to the Oracle Developer Cloud Service project.
  2. In the left navigation bar of the project, click Deploy.
  3. In the Deploy page, click New Configuration.
  4. In the New Deployment Configuration page, in Configuration Name, enter nodejsmicroserviceapplication.
    The Application Name field is automatically populated with the same value.
    New Deployment Configuration page
    Description of the illustration devcs_deploy_configname.png
  5. In Deployment Target, select a pre-configured Oracle Application Container Cloud target, or click New and then select Application Container Cloud to create a deployment target.
  6. In the Deploy to Application Container Cloud dialog box, verify or enter the details, enter the username and password of the user who has the Admin Role (Java_Administrators) identity domain role, and click Test Connection.
    Deploy to Application Container dialog box
    Description of the illustration devcs_deploy_deploymenttarget.png
    After the connection is successful, click Use Connection.
  7. In ACCS Properties, select Node as Runtime.
    ACCS Properties section of the New Deployment Configuration page
    Description of the illustration devcs_deploy_accsproperties.png
  8. In Job, select build-nodejs-microservice. The values in Build and Artifact lists are automatically selected.
    Job, Build, and Artifact fields of the New Deployment Configuration page
    Description of the illustration devcs_deploy_job_build.png
    If the values are not selected automatically, ensure that the Artifact field shows NodejsMicroserviceApplication/nodeappl.zip of the last successful build.
  9. Click Save and Deploy.
  10. After a successful deployment, click nodejsmicroserviceapplication to open the Node.js application in a new brower window or tab.
    Deployments page
    Description of the illustration devcs_deploy_deploymentspage.png

The deployed application should show a {"error":false,"message":"Hello!"} message.

Deployed Node.js application
Description of the illustration devcs_deploy_application.png

more informationWant to Learn More?