rsnext/examples/api-routes-rest
Tim Neutkens 483bd3ddda
Rename ZEIT to Vercel (#12075)
* Find/replace

* Update more URLs

* More rename

* Fix remaining examples

* More updates

* Update create-next-app

* Update remaining text

* Update

Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-04-21 11:47:12 +02:00
..
pages Update api-rest-example to SSG (#11362) 2020-03-28 13:27:17 -05:00
package.json Update api-rest-example to SSG (#11362) 2020-03-28 13:27:17 -05:00
README.md Rename ZEIT to Vercel (#12075) 2020-04-21 11:47:12 +02:00

API routes with REST

Next.js ships with API routes, which provide an easy solution to build your own API. This example shows how it can be used to create your REST api.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Using create-next-app

Execute create-next-app with npm or Yarn to bootstrap the example:

npm init next-app --example api-routes-rest api-routes-rest-app
# or
yarn create next-app --example api-routes-rest api-routes-rest-app

Deploy to Now

Deploy it to the cloud with Vercel (Documentation).