You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://deploy.now.sh/?repo=https://github.com/zeit/next.js/tree/master/examples/hello-world)
2
+
3
+
# Hello World example
4
+
5
+
## How to use
6
+
7
+
### Using `create-next-app`
8
+
9
+
Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/hello-world
23
+
cd hello-world
24
+
```
25
+
26
+
Install it and run:
27
+
28
+
```bash
29
+
npm install
30
+
npm run dev
31
+
# or
32
+
yarn
33
+
yarn dev
34
+
```
35
+
36
+
Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
37
+
38
+
```bash
39
+
now
40
+
```
41
+
42
+
## The idea behind the example
43
+
44
+
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.
0 commit comments