---
title: "Node.js Serverless Function"
description: "Use Node.js with Vercel Serverless Functions."
url: "https://vercel.com/templates/other/nodejs-serverless-function-express"
links:
  repository: "https://github.com/vercel/examples/tree/main/solutions/node-hello-world"
  demo: "https://nodejs-api-example.vercel.app/api/hello"
  deploy: "https://vercel.com/new/clone?demo-title=Node.js+Serverless+Function&demo-description=Use+Node.js+with+Vercel+Serverless+Functions.&demo-url=https%3A%2F%2Fnodejs-api-example.vercel.app%2Fapi%2Fhello&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F1fssRJ5joW6jp0EaXRCZfK%2F19756fc61a2eb4aa0783b705e0c387b6%2FNode.js.png&project-name=Node.js+Serverless+Function&repository-name=nodejs-serverless-function-express&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Fnode-hello-world&from=templates&skippable-integrations=1"
---

# Node.js Serverless Function

Use Node.js with Vercel Serverless Functions.

# Node.js Hello World

Simple Node.js + Vercel example that returns a "Hello World" response.

## How to Use

You can choose from one of the following two methods to use this repository:

### One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/examples/tree/main/solutions/node-hello-world&project-name=node-hello-world&repository-name=node-hello-world)

### Clone and Deploy

```bash
git clone https://github.com/vercel/examples/tree/main/solutions/node-hello-world
```

Install the Vercel CLI:

```bash
npm i -g vercel
```

Then run the app at the root of the repository:

```bash
vercel dev
```

## Related Templates

### [Alt Text Generator](https://vercel.com/templates/next.js/ai-alt-text-generator)

Generate descriptions for your images using AI.

### [Django Hello World](https://vercel.com/templates/python/django-hello-world)

Use Django on Vercel with Serverless Functions using the Python Runtime.

### [Flask Hello World](https://vercel.com/templates/python/flask-hello-world)

Use Flask 3 on Vercel with Serverless Functions using the Python Runtime.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
