Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixjung/next-async-api-example
Created with CodeSandbox
https://github.com/felixjung/next-async-api-example
Last synced: 8 days ago
JSON representation
Created with CodeSandbox
- Host: GitHub
- URL: https://github.com/felixjung/next-async-api-example
- Owner: felixjung
- Created: 2021-04-30T13:09:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T00:09:02.000Z (almost 2 years ago)
- Last Synced: 2023-06-05T09:20:16.763Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://codesandbox.io/s/github/felixjung/next-async-api-example
- Size: 246 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello World example
This example shows the most basic idea behind Next. We have 2 pages: `pages/index.js` and `pages/about.js`. The former responds to `/` requests and the latter to `/about`. Using `next/link` you can add hyperlinks between them with universal routing capabilities. The `day` directory shows that you can have subdirectories.
## Deploy your own
Deploy the example using [Vercel](https://vercel.com):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/vercel/next.js/tree/canary/examples/hello-world)
## How to use
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 hello-world hello-world-app
# or
yarn create next-app --example hello-world hello-world-app
```Deploy it to the cloud with [Vercel](https://vercel.com/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).