---
title: "Express.js on Vercel"
description: "Simple Express.js + Vercel example that serves html content, JSON data and simulates an API route."
url: "https://vercel.com/templates/other/express-js-on-vercel"
links:
  repository: "https://github.com/vercel/examples/tree/main/solutions/express"
  demo: "https://express-vercel-example-demo.vercel.app"
  deploy: "https://vercel.com/new/clone?demo-title=Express.js+on+Vercel&demo-description=Simple+Express.js+%2B+Vercel+example+that+serves+html+content%2C+JSON+data+and+simulates+an+API+route.&demo-url=https%3A%2F%2Fexpress-vercel-example-demo.vercel.app&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2FswUZt4R6yxCjtb5PaoSMT%2F250fb904d33f82b2b96769b964d7848b%2FFlagsmith_Dark__1_.png&project-name=Express.js+on+Vercel&repository-name=express-js-on-vercel&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Fexpress&from=templates&skippable-integrations=1"
---

# Express.js on Vercel

Simple Express.js + Vercel example that serves html content, JSON data and simulates an API route.

# Express.js on Vercel

Basic Express.js + Vercel example that serves html content, JSON data and simulates an api route.

## 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/express&project-name=express&repository-name=express)

### Clone and Deploy

```bash
git clone https://github.com/vercel/examples/tree/main/solutions/express
```

Install the Vercel CLI:

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

Then run the app at the root of the repository:

```bash
vercel dev
```

## Related Templates

### [Node.js Serverless Function](https://vercel.com/templates/other/nodejs-serverless-function-express)

Use Node.js with Vercel Serverless Functions.

---

## 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.
