Git Product home page Git Product logo

helion-hello-world-node's Introduction

Hello World Node.js

New users should check out the resources available at HP Helion Docs. The site includes more detail and has instructions on how to create an HP Helion Development Platform Application Lifecycle Services Cluster.

To create a Cloud Foundry app in Node.js, the only mandatory files are:

  • Your main .js file (e.g. Server.js)
  • manifest.yml
  • package.json
  • Procfile

Manifest.yml is a config file used to specify settings that would otherwise be specified at the command line when using the Helion Client.

The Procfile tells the Helion Development Platform how to run your Node.js application. An extremely simple one is included with this sample that just tells us how to execute the program.

Prerequisites

  • If you do not have an HP Helion Development Platform Application Lifecycle Services Cluster available, please create one before continuing. You will also need to install the Helion CLI, which can be installed from the cluster's Management Console. Please refer to HP Helion Docs for further details.

Deploy the Application

Execute the following commands:

  • Open the terminal

  • If you are not already there, cd to the root directory of the sample. The root directory contains the manifest.yml file which helps automate deployment.

  • If you have not logged in to your target environment yet, execute the following:

    helion target https://api.example.com

    helion login

    Enter your Management Console credentials

    helion push

    Hit enter to accept any default values that you may be prompted for. Note: By default, ALS clusters are configured with two domains (private and public). In some situations, the Helion CLI may prompt you to select a target domain. If prompted, select the public domain from the given list (e.g. https://api.example.com)

View and run the app

  • Go to the management console (e.g. https://api.example.com)
  • Check the applications link to see a list of your apps.
  • Click on the name of the app you just deployed. The app name is specified in manifest.yml.
  • Click "View App" to see your app in action.

The result when visiting the application page and clicking 'View App' should be a page with the text "Hello World".

helion-hello-world-node's People

Contributors

flacnut avatar phanatic avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.