rsnext/examples/blog-starter/README.md

53 lines
1.3 KiB
Markdown
Raw Normal View History

2019-06-13 17:32:04 +02:00
# Blog starter example
## Deploy your own
Deploy the example using [ZEIT Now](https://zeit.co/now):
[![Deploy with ZEIT Now](https://zeit.co/button)](https://zeit.co/new/project?template=https://github.com/zeit/next.js/tree/canary/examples/blog-starter)
2019-06-13 17:32:04 +02:00
## How to use
### Using `create-next-app`
Download [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) to bootstrap the example:
2019-06-13 17:32:04 +02:00
```
npm i -g create-next-app
create-next-app --example blog-starter
```
### Download manually
Download the example [or clone the repo](https://github.com/zeit/next.js):
```bash
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/blog-starter
cd blog-starter
```
### Run locally
Install and run the development server:
```bash
yarn install
now dev
```
### Deploy
Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download)):
2019-06-13 17:32:04 +02:00
```bash
now
```
## The idea behind the example
This is an example of a blog built with Next.js. [Read more about the motivation and how it is built](https://jolvera.dev/posts/rebuilding-my-blog-with-nextjs).
The blog is still barebones and need more improvements and styling, but this should be enough to get you started.
[Demo deployed in Now](https://nextjs-blog-starter.now.sh/)