https://github.com/eioluseyi/tic-tac-though
Created with CodeSandbox
https://github.com/eioluseyi/tic-tac-though
Last synced: about 1 year ago
JSON representation
Created with CodeSandbox
- Host: GitHub
- URL: https://github.com/eioluseyi/tic-tac-though
- Owner: eioluseyi
- Created: 2023-02-18T22:46:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T09:16:30.000Z (almost 3 years ago)
- Last Synced: 2025-02-15T02:15:09.314Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://codesandbox.io/s/github/eioluseyi/tic-tac-though
- Size: 867 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello World example
## How to use
### Using `create-next-app`
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:
```bash
npx create-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 [now](https://zeit.co/now) ([download](https://zeit.co/download))
```bash
now
```
## The idea behind the 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.