Easily Host Your Node.js Application on Coolify: A Complete Guide

Easily Host Your Node.js Application on Coolify: A Complete Guide

·

1 min read

Step 1: Create your project

  1. I have created a sample project using npm init -y and installed the express package. Below are the references for both the index.js and package.json files.

  2. Push this code to GitHub.


Step 2: Deploying on Coolify

  1. I hope you have installed Coolify on EC2. Create a project and select a public repository. Provide the public URL of the repository and click on continue.

  2. Go to environment variables and add environment variables (if your project uses any) click on save and then deploy.

  3. Wait for the container to be created and then you can visit the link. You will see "Hello World!" on the page.

There you go, you have successfully deployed a node.js application. You can follow the same process with Vite using npm create vite@latest

It's been fun exploring new tech. I hope you've gained some knowledge.

Until we meet again, stay passionate and keep learning.