An open API service indexing awesome lists of open source software.

https://github.com/ethomson/helloworld-02


https://github.com/ethomson/helloworld-02

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

---
name: Edge API Route
slug: edge-api-route
description: Build your API using Vercel Edge Functions.
framework: Next.js
useCase: Edge Functions
css: None
deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/edge-api-routes/hello-world&project-name=edge-api-route&repository-name=edge-api-route
demoUrl: https://edge-api-route.vercel.app/api/edge
---

# Edge API Route

Build your API using Vercel Edge Functions.

## Demo

https://edge-api-route.vercel.app/api/edge

## 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/edge-api-routes/hello-world&project-name=edge-api-route&repository-name=edge-api-route)

### Clone and Deploy

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npx create-next-app --example https://github.com/vercel/examples/tree/main/edge-api-routes/hello-world edge-api-route
# or
yarn create next-app --example https://github.com/vercel/examples/tree/main/edge-api-routes/hello-world edge-api-route
```

Install the Vercel CLI:

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

Then run the app at the root of the repository:

```bash
vercel dev
```