Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haraldf/random-data
Little vercel lambda function that returns some random binary data
https://github.com/haraldf/random-data
Last synced: 9 days ago
JSON representation
Little vercel lambda function that returns some random binary data
- Host: GitHub
- URL: https://github.com/haraldf/random-data
- Owner: haraldF
- Created: 2020-05-12T14:26:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T05:42:01.000Z (almost 2 years ago)
- Last Synced: 2023-03-11T15:27:59.728Z (over 1 year ago)
- Language: TypeScript
- Size: 1010 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
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/zeit/next.js/tree/canary/examples/hello-world)
## How to use
### Using `create-next-app`
Execute [`create-next-app`](https://github.com/zeit/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
npm init next-app --example hello-world hello-world-app
# or
yarn create next-app --example hello-world hello-world-app
```### Download manually
Download the example:
```bash
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/hello-world
cd hello-world
```Install it and run:
```bash
npm install
npm run dev
# or
yarn
yarn dev
```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)).