2017-04-22 12:51:51 +00:00
[![Deploy to now ](https://deploy.now.sh/static/button.svg )](https://deploy.now.sh/?repo=https://github.com/zeit/next.js/tree/master/examples/with-typescript)
2017-11-13 12:59:00 +00:00
2017-02-09 11:36:58 +00:00
# TypeScript Next.js example
2017-11-13 12:59:00 +00:00
2017-02-09 11:36:58 +00:00
This is a really simple project that show the usage of Next.js with TypeScript.
2017-12-03 04:30:17 +00:00
## How to use it?
2017-11-13 12:59:00 +00:00
2017-12-03 04:30:17 +00:00
### Using `create-next-app`
Download [`create-next-app` ](https://github.com/segmentio/create-next-app ) to bootstrap the example:
2018-03-14 08:09:46 +00:00
```bash
npx create-next-app --example with-typescript with-typescript-app
# or
yarn create next-app --example with-typescript with-typescript-app
2017-12-03 04:30:17 +00:00
```
### Download manually
Download the example [or clone the repo ](https://github.com/zeit/next.js ):
```bash
2017-12-07 02:12:42 +00:00
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-typescript
2017-12-03 04:30:17 +00:00
cd with-typescript
```
Install it and run:
2017-02-09 11:36:58 +00:00
```
2017-11-13 12:59:00 +00:00
npm install
npm run dev
2017-02-09 11:36:58 +00:00
```