Skip to main content
Version: 4.4

Get started with Node App

This article will show you how to publish a Node App in Katonic Platform.

In this tutorial you will:

  • spin a workspace environment with the necessary dependencies to publish a Node App.
  • setup and create sample Node app.

You’ll be working with sample-Node app.

Setting-up your Workspace​

The first step is to create a VS code Workspace capable of running your App.

  1. From the platform , Select Workspace and then click on Create Workspace.

    Untitled

  2. Fill the following details there:

    • Name : fill your workspace name.

    • Select Environment: select VSCode environment.

    • Webapp: select Node.

    • Image: select Node version.

    • Additional Port: select port where you want to run.

    • Resources: Desired compute resource for workspace.

      Untitled

    • Click on Create.

  3. You will be directed to the Workspace overview window, where you can see your workspace under processing.

    Untitled

  4. It will take approximately 2-3 minutes to get this workspace ready.

    Untitled

    Note: Refresh the page, if your are not seeing processing to running status change after 2-3 minutes.

  5. You can connect to your workspace ,when the processing tab changes to running.

  6. Click on the connect to use this Workspace for App building.

Required GitHub instructions and setup​

Follow the Link for Git instruction and setup required in the VSCode.

Start the app development​

  1. Write your sample code or Click here for the sample Node app.

Test your app​

  1. Create the package.json file with all required dependency.

  2. start the terminal and type following command in the terminal

npm install
export PORT=8050
npm start
  1. Go back to the Workspaces.

  2. Click on the Live app to see your app.

    Untitled

  3. Your app will open on the new tab.

    Untitled

  4. You can also monitor your running workspace usage by clicking on Usage.

    Untitled

  5. Finally commit and push your code to the GitHub. Follow the Link for instructions required to commit and push in the VSCode.