Articles on: Galaxy WebApps

Galaxy WebApps - Deploy NodeJS

Step-by-Step Guide to Deploy Node.js Applications on Galaxy Cloud



Introduction



This guide will present a detailed step-by-step process to deploy a Node.js application on the Galaxy Cloud.

Prerequisites



Before you begin, you will need:

An active account on Galaxy Cloud.
GitHub account containing your Node.js application.
Familiarity with the command line and basic application deployment concepts.

Deployment Steps



Follow the steps below to deploy your Node.js application on Galaxy Cloud:

1. Choose Application Type



Access the Galaxy Cloud dashboard and click "Create New" to start the deployment process for a new application.



In the "Choose App Type" section, select "Node.js" as the application type.


2. Connect Git Provider



After selecting the Node.js application type, the next step is to connect your GitHub account.

Click "Continue with GitHub" to initiate the authentication and connection process with your GitHub account.


3. Import Repository



After connecting your GitHub account, select the Git repository that contains your Node.js application.



4. Configure Account & Plan



This section presents different sizing options for your application's deployment on the Galaxy Cloud platform. The available options are:



Different Sizing Options for Galaxy Cloud Deployment



This section presents different sizing options for your application's deployment on the Galaxy Cloud platform. The available options are:

- Nano: 256MB RAM / 0.2 gCPU, estimated cost: $0/mo for 1 container
- Micro: 512MB RAM / 0.5 gCPU, estimated cost: $6/mo for 1 container
- Small: 2GB RAM / 1 gCPU, estimated cost: $24/mo for 1 container
- Medium: 4GB RAM / 2 gCPU, estimated cost: $81/mo for 1 container
- Large: 8GB RAM / 4 gCPU, estimated cost: $166/mo for 1 container
- XLarge: 16GB RAM / 4 gCPU, estimated cost: $214/mo for 1 container
- 2XLarge: 32GB RAM / 8 gCPU, estimated cost: $428/mo for 1 container

5. Configure and Deploy



In the "Configure and Deploy" step, you will need to provide specific information about your application:

- Branch: Select the main branch of your Git repository, usually "main".
- Region: Choose the geographic region where your application will be deployed.
- App Name: Enter a descriptive name for your application.
- Language Version: Select the Node.js version your application uses.
- Install Command: Specify the command to install your application's dependencies, usually "npm install".
- Build Command: Enter the command to build your application, usually "npm run build".
- Start Command: Specify the command to start your application, usually "npm run start".
- Environment Variables: Add any environment variables required for your application, such as the HTTP port (PORT=3000).

Review all the information, and if everything is correct, click "Deploy" to initiate the deployment process for your Node.js application on Galaxy Cloud.



After clicking "Deploy", Galaxy Cloud will start the deployment process for your application. You can monitor the progress and check the logs during the deployment.

Once the deployment is successful, your Node.js application will be available at the address provided by Galaxy Cloud.

Conclusion



By following this step-by-step guide, you were able to deploy your Node.js application on the Galaxy Cloud. Galaxy Cloud provides a scalable and reliable platform to host your applications, allowing you to focus on development without worrying about the underlying infrastructure.

If you have any questions or need additional assistance, please don't hesitate to contact the Galaxy Cloud support team.

Updated on: 21/01/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!