--- title: "Deploy a Node.js App" description: "Learn how to deploy Node.js applications on Miget using Git in just a few steps" --- Deploy your [Node.js](https://nodejs.org/en) applications on Miget using [Miget Buildpacks](https://migetpacks.com). Miget automatically detects your Node.js version, installs dependencies, and deploys your app to Kubernetes. View a live demo at [node-js.onmiget.com](https://node-js.onmiget.com). ## Prerequisites Before you begin, ensure you have: - A Miget account at [app.miget.com](https://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: ```bash 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 Navigate to [app.miget.com](https://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. Configure your app's build and runtime settings: Configure builder and size 1. Select **Auto detection (Miget 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. 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. 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 Configure your local repository to push to Miget: ```bash git remote add miget https://git..miget.io// ``` Replace the placeholders: - `` - Your Miget region code - `` - Your compute resource name - `` - Your application name Find the exact command in the **Deploy via git** section of your app dashboard. Deploy your application by pushing to Miget: ```bash 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 Set up a custom domain for your application Configure secrets and environment variables