Getting started with Node.js

Follow this guide to get started with Node.js. To do this, you must first purchase a Node.js package as an option on your web hosting.

Step 1: uploading your Node.js app into git

Deploying your Node.js application is done with your code retrieved from an online git repository (e.g. GitHub, GitLab, Bitbucket… ). Therefore, you need to install your application locally first (npm install) and then upload it to a git repository. Copy your respository link (see screenshot) for step 2.

Step 2: add your Node.js instance

After your Node.js application is in a git repository, you need to link it to your Node.js instance at Combell. To do this, add a Node.js instance and link it to your git repository.

To add your Node.js instance, follow these steps in the control panel:

  1. Go to ‘My Products’ > ‘Web hosting’ and click ‘Manage hosting’ next to your domain name.
  2. Click on ‘Node.js’ in the menu on the left.
  3. Click on ‘Add Instance’ on the right.
  4. Fill in the details of your application: Friendly name, Node.js version and the port on which the application can be reached.
  5. Check the repository requirements. In the package.json file, a ‘build’ and ‘serve’ script must be present in the ‘scripts’ field anyway.
  6. Enter your repository link. You can copy it from your git repository like Github.
  7. Copy the deploy key and click on ‘Add Instance’ to confirm.
  8. Now enter the deploy key in your git repository like GitHub, see screenshot. Read-only access is sufficient.

Step 3: running your Node.js pipeline

After creating your instance, we can run the pipeline.

To run your Node.js pipeline, follow these steps in the control panel:

  1. Go to ‘My Products’ > ‘Web hosting’ and click on ‘Manage hosting’ next to your domain name.
  2. Click on ‘Node.js’ in the menu on the left and choose your instance.
  3. Right-click ‘Run pipeline’, see screenshot.
  4. Your pipeline will now be executed. If it is successful, your application is running. To make it also available online, change the backend of your hosting package, see next step.

Step 4: Make your app available online

If you want your app to also be accessible via the internet, link it to a website on your hosting package.

To make your Node.js application available online, follow these steps in the control panel:

  1. Go to ‘My Products’ > ‘Web hosting’ and click on ‘Manage hosting’ next to your domain name.
  2. Click on ‘Websites & SSL’ in the menu on the left.
  3. Right-click ‘Manage website’ and select ‘Change website backend’.
  4. Select ‘Node.js’ and choose your Node.js application.
  5. Click ‘Change website backend’ to confirm. Surf to the website now and you will see the Node.js application.

Tip: make sure your domain’s DNS settings correctly point to your hosting package. 
Read: how to link a domain name to a hosting package

Updated on 7 October 2024

Was this article helpful?

Need Support?
Can't find the answer you're looking for?
Contact Support

Couldn't find a solution?

support_bottom_contact_alt

Our specialists are available 24/7 to provide you with free support. Feel free to contact Joachim and his colleagues via e-mail or by phone.

support_bottom_contact_alt
Joachim Coessens Specialist Support