Deploy your Node.js applications on Miget using Paketo Buildpacks. Miget automatically detects your Node.js version, installs dependencies, and deploys your app to Kubernetes.
View a live demo at node-js.onmiget.com.

Prerequisites

Before you begin, ensure you have:
  • A Miget account at app.miget.com
  • Git installed on your local machine
  • A package.json file in your application repository
  • Basic familiarity with Node.js and command line operations

Prepare Your Application

Clone the sample Node.js application to your local machine:
git clone https://github.com/migetapp/node-js-hello-world.git
cd node-js-hello-world
You can use your own Node.js application. Miget supports any Node.js app with a package.json file.

Create and Deploy Your App

1

Create a new app

Navigate to app.miget.com and click the New button, then select Application.
Create new app
In the Create new App window:
  1. Enter your App Name
  2. Select the resource where you want to deploy
  3. Click Next
Miget automatically appends a unique suffix to your app name (e.g., example-1jgiq) to ensure uniqueness.
2

Configure builder and size

Configure your app’s build and runtime settings:
Configure builder and size
  1. Select Paketo Buildpacks as the builder type
  2. Choose a predefined size or specify custom resources
  3. Click Next
Custom size configuration
Leave the defaults to keep Fair Scheduler enabled for optimal resource allocation.
3

Select deploy method

Choose how you want to deploy your application:
Select deploy method
  1. Select git push as the deploy method
  2. Click Create
Currently, git push is the only supported deploy method.
You’re redirected to the app overview screen. Your app space (ingress, build context) is being created in the background.
4

Get your Git token

You need a Git token to push your code to Miget.
Deploy via git commands
  1. Click the Deploy via git button
  2. Click See the token button
  3. Copy your token
  • Your Miget name is the default username for Git
  • The token is your password
  • Revoking the default token prevents deployments
  • Custom tokens use the token name as the username
5

Add Miget as a Git remote

Configure your local repository to push to Miget:
git remote add miget https://git.<region>.miget.io/<your-miget-name>/<app-name>
Replace the placeholders:
  • <region> - Your Miget region code
  • <your-miget-name> - Your compute resource name
  • <app-name> - Your application name
Find the exact command in the Deploy via git section of your app dashboard.
6

Push your code

Deploy your application by pushing to Miget:
git push miget
Miget automatically:
  1. Detects your Node.js version from package.json
  2. Installs dependencies using npm
  3. Builds your application
  4. Deploys to Kubernetes
  5. Provides a public URL
Your app is live at the URL displayed in the deployment output.

Next Steps