rsnext/examples/blog-starter
2019-07-30 16:49:12 -05:00
..
components Added new blog example (#7511) 2019-06-13 10:32:04 -05:00
pages Fix typo within blog-starter example (#8182) 2019-07-30 16:49:12 -05:00
posts Added new blog example (#7511) 2019-06-13 10:32:04 -05:00
static Added new blog example (#7511) 2019-06-13 10:32:04 -05:00
.babelrc Added new blog example (#7511) 2019-06-13 10:32:04 -05:00
blog.config.js Added new blog example (#7511) 2019-06-13 10:32:04 -05:00
next.config.js Added new blog example (#7511) 2019-06-13 10:32:04 -05:00
now.json Added new blog example (#7511) 2019-06-13 10:32:04 -05:00
package.json Switch all examples to next@latest (#7806) 2019-07-08 18:41:33 -04:00
README.md Added new blog example (#7511) 2019-06-13 10:32:04 -05:00

Blog starter example

How to use

Using create-next-app

Download create-next-app to bootstrap the example:

npm i -g create-next-app
create-next-app --example blog-starter

Download manually

Download the example or clone the repo:

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:

yarn install
now dev

Deploy

Deploy it to the cloud with now (download)

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.

The blog is still barebones and need more improvements and styling, but this should be enough to get you started.

Demo deployed in Now