diff --git a/examples/active-class-name/README.md b/examples/active-class-name/README.md index 7f8b074e6c2c..0425243a78c7 100644 --- a/examples/active-class-name/README.md +++ b/examples/active-class-name/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example active-class-name active-class-name-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/basic-css/README.md b/examples/basic-css/README.md index 22ce99b448e4..fc7ee659fbd6 100644 --- a/examples/basic-css/README.md +++ b/examples/basic-css/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example basic-css basic-css-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/custom-server-express/README.md b/examples/custom-server-express/README.md index ce3efd0d4abd..4cda170e7506 100644 --- a/examples/custom-server-express/README.md +++ b/examples/custom-server-express/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example custom-server-express custom-server-express-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/custom-server-fastify/README.md b/examples/custom-server-fastify/README.md index 12055aaf91fa..404558388e59 100644 --- a/examples/custom-server-fastify/README.md +++ b/examples/custom-server-fastify/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example custom-server-fastify custom-server-fastify-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/custom-server-hapi/README.md b/examples/custom-server-hapi/README.md index 629fae4cb413..a9c60259b7ed 100644 --- a/examples/custom-server-hapi/README.md +++ b/examples/custom-server-hapi/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example custom-server-hapi custom-server-hapi-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/custom-server-koa/README.md b/examples/custom-server-koa/README.md index eb0a9df07ad9..284ff45ab2ed 100644 --- a/examples/custom-server-koa/README.md +++ b/examples/custom-server-koa/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example custom-server-koa custom-server-koa-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/custom-server-micro/README.md b/examples/custom-server-micro/README.md index 6acf0955d581..16212bad98c1 100644 --- a/examples/custom-server-micro/README.md +++ b/examples/custom-server-micro/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example custom-server-micro custom-server-micro-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/custom-server-nodemon/README.md b/examples/custom-server-nodemon/README.md index 91ed60e18e3f..57520a23285f 100644 --- a/examples/custom-server-nodemon/README.md +++ b/examples/custom-server-nodemon/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example custom-server-nodemon custom-server-nodemon-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/custom-server/README.md b/examples/custom-server/README.md index c94fc2ce3ef1..c0df13dcd277 100644 --- a/examples/custom-server/README.md +++ b/examples/custom-server/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example custom-server custom-server-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/data-fetch/README.md b/examples/data-fetch/README.md index d4da62d8a5ff..b704198ab91a 100644 --- a/examples/data-fetch/README.md +++ b/examples/data-fetch/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example data-fetch data-fetch-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/form-handler/README.md b/examples/form-handler/README.md index bd9ea3c2e7ff..970eda08b9a8 100644 --- a/examples/form-handler/README.md +++ b/examples/form-handler/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example form-handler form-handler-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/head-elements/README.md b/examples/head-elements/README.md index ecdc0e6f1d80..bbff8e45f2fd 100644 --- a/examples/head-elements/README.md +++ b/examples/head-elements/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example head-elements head-elements-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/hello-world/README.md b/examples/hello-world/README.md index f183313034c0..c03900fe0855 100644 --- a/examples/hello-world/README.md +++ b/examples/hello-world/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example hello-world hello-world-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/layout-component/README.md b/examples/layout-component/README.md index 468d4d7b77ed..6a167e1447e1 100644 --- a/examples/layout-component/README.md +++ b/examples/layout-component/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example layout-component layout-component-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/nested-components/README.md b/examples/nested-components/README.md index e9d60263373e..eebc9125725c 100644 --- a/examples/nested-components/README.md +++ b/examples/nested-components/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example nested-components nested-components-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/page-transitions/README.md b/examples/page-transitions/README.md index ab532dff3991..20ef9d57dfdf 100644 --- a/examples/page-transitions/README.md +++ b/examples/page-transitions/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example page-transitions page-transitions-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/parameterized-routing/README.md b/examples/parameterized-routing/README.md index b37cb2bdd1b6..2bc64793a183 100644 --- a/examples/parameterized-routing/README.md +++ b/examples/parameterized-routing/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example parameterized-routing parameterized-routing-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/progressive-render/README.md b/examples/progressive-render/README.md index c9fa4d1cdc5c..99b6d6228b1f 100644 --- a/examples/progressive-render/README.md +++ b/examples/progressive-render/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example progressive-render progressive-render-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/root-static-files/README.md b/examples/root-static-files/README.md index adcc63cc3e22..5ad25ddb7114 100644 --- a/examples/root-static-files/README.md +++ b/examples/root-static-files/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example root-static-files root-static-files-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/shared-modules/README.md b/examples/shared-modules/README.md index 0ba99de5fa4a..e99fc89c3f07 100644 --- a/examples/shared-modules/README.md +++ b/examples/shared-modules/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example shared-modules shared-modules-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/ssr-caching/README.md b/examples/ssr-caching/README.md index 5fc6d7f710a8..9b700e4d448a 100644 --- a/examples/ssr-caching/README.md +++ b/examples/ssr-caching/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example ssr-caching ssr-caching-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/svg-components/README.md b/examples/svg-components/README.md index b7e274d73510..a0af06d107ff 100644 --- a/examples/svg-components/README.md +++ b/examples/svg-components/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example svg-components svg-components-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/using-inferno/README.md b/examples/using-inferno/README.md index 69bd5fc75c3f..8f0985299103 100644 --- a/examples/using-inferno/README.md +++ b/examples/using-inferno/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example using-inferno using-inferno-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/using-preact/README.md b/examples/using-preact/README.md index fef5b3e29f28..6789d65e3e09 100644 --- a/examples/using-preact/README.md +++ b/examples/using-preact/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example using-preact using-preact-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/using-router/README.md b/examples/using-router/README.md index ba15e97ab159..4bd1976e4940 100644 --- a/examples/using-router/README.md +++ b/examples/using-router/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example using-router using-router-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/using-with-router/README.md b/examples/using-with-router/README.md index 7d8988af14d1..4af15006fb45 100644 --- a/examples/using-with-router/README.md +++ b/examples/using-with-router/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example using-with-router using-with-router-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-absolute-imports/README.md b/examples/with-absolute-imports/README.md index 6897209c130c..b1e21c3e4a10 100644 --- a/examples/with-absolute-imports/README.md +++ b/examples/with-absolute-imports/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-absolute-imports with-absolute-imports-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-algolia-react-instantsearch/README.md b/examples/with-algolia-react-instantsearch/README.md index ef25a49972ee..d60b9ef1589a 100644 --- a/examples/with-algolia-react-instantsearch/README.md +++ b/examples/with-algolia-react-instantsearch/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-amp/README.md b/examples/with-amp/README.md index c0e1d187e3f1..5f8633a65e1b 100644 --- a/examples/with-amp/README.md +++ b/examples/with-amp/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-amp with-amp-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js.git): ```bash diff --git a/examples/with-ant-design/README.md b/examples/with-ant-design/README.md index efa5cf4a32da..738f23eee10c 100644 --- a/examples/with-ant-design/README.md +++ b/examples/with-ant-design/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-ant-design with-ant-design-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-antd-mobile/README.md b/examples/with-antd-mobile/README.md index 236a5f2e9fc8..287a8fb2de68 100644 --- a/examples/with-antd-mobile/README.md +++ b/examples/with-antd-mobile/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-antd-mobile with-antd-mobile-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-aphrodite/README.md b/examples/with-aphrodite/README.md index 7102dead9e7b..0c7b48aa2b3d 100644 --- a/examples/with-aphrodite/README.md +++ b/examples/with-aphrodite/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-aphrodite with-aphrodite-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-apollo-and-redux/README.md b/examples/with-apollo-and-redux/README.md index 71061592624c..47bcfc4758dd 100644 --- a/examples/with-apollo-and-redux/README.md +++ b/examples/with-apollo-and-redux/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-apollo-and-redux with-apollo-and-redux-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-apollo-auth/README.md b/examples/with-apollo-auth/README.md index 4b241eb332b3..98666c9f4b77 100644 --- a/examples/with-apollo-auth/README.md +++ b/examples/with-apollo-auth/README.md @@ -7,6 +7,17 @@ https://next-with-apollo-auth.now.sh ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-apollo-auth with-apollo-auth-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-apollo/README.md b/examples/with-apollo/README.md index a283a645eb23..df10d3dcd0e4 100644 --- a/examples/with-apollo/README.md +++ b/examples/with-apollo/README.md @@ -7,6 +7,17 @@ https://next-with-apollo.now.sh ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-apollo with-apollo-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-asset-imports/README.md b/examples/with-asset-imports/README.md index 2c7d73dd0f79..10d0e2c5d16a 100644 --- a/examples/with-asset-imports/README.md +++ b/examples/with-asset-imports/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-asset-imports with-asset-imports-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-babel-macros/README.md b/examples/with-babel-macros/README.md index 32e38d790cf2..efb630737325 100644 --- a/examples/with-babel-macros/README.md +++ b/examples/with-babel-macros/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-babel-macros with-babel-macros-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-cxs/README.md b/examples/with-cxs/README.md index e8e9d886c35a..632233f1a6c7 100644 --- a/examples/with-cxs/README.md +++ b/examples/with-cxs/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-cxs with-cxs-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-dotenv/README.md b/examples/with-dotenv/README.md index 3362a4f01134..6cce16bfccb8 100644 --- a/examples/with-dotenv/README.md +++ b/examples/with-dotenv/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-dotenv with-dotenv-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-dynamic-import/README.md b/examples/with-dynamic-import/README.md index 3c16ce44b8c0..4ace8e52b3ed 100644 --- a/examples/with-dynamic-import/README.md +++ b/examples/with-dynamic-import/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-dynamic-import with-dynamic-import-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-electron/readme.md b/examples/with-electron/readme.md index 9f1161220aea..def1c54191f5 100644 --- a/examples/with-electron/readme.md +++ b/examples/with-electron/readme.md @@ -2,7 +2,18 @@ **You can find a detailed documentation about how to build Electron apps with Next.js [here](https://leo.im/2017/electron-next)!** -## Usage +## How to use + +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-electron with-electron-app +``` + +### Download manually Download the example [or clone the repo](https://github.com/zeit/next.js): diff --git a/examples/with-emotion/README.md b/examples/with-emotion/README.md index ded4897c68ed..88c29ee0c063 100644 --- a/examples/with-emotion/README.md +++ b/examples/with-emotion/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-emotion with-emotion-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-fela/README.md b/examples/with-fela/README.md index 961986378009..327c4cac9975 100644 --- a/examples/with-fela/README.md +++ b/examples/with-fela/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-fela with-fela-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-firebase-authentication/README.md b/examples/with-firebase-authentication/README.md index 30297e4093cb..7f3a1c0f08d7 100644 --- a/examples/with-firebase-authentication/README.md +++ b/examples/with-firebase-authentication/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-firebase-authentication with-firebase-authentication-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-firebase-hosting/README.md b/examples/with-firebase-hosting/README.md index a189d5d5206a..7285decc8347 100644 --- a/examples/with-firebase-hosting/README.md +++ b/examples/with-firebase-hosting/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-firebase-hosting with-firebase-hosting-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-flow/README.md b/examples/with-flow/README.md index f3d4dc314249..c5aa0f6ceeea 100644 --- a/examples/with-flow/README.md +++ b/examples/with-flow/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-flow with-flow-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-freactal/README.md b/examples/with-freactal/README.md index 125d0f0c9716..5978db70280a 100644 --- a/examples/with-freactal/README.md +++ b/examples/with-freactal/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-freactal with-freactal-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-glamor/README.md b/examples/with-glamor/README.md index e358ea09024c..90172624a0d0 100644 --- a/examples/with-glamor/README.md +++ b/examples/with-glamor/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-glamor with-glamor-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-glamorous/README.md b/examples/with-glamorous/README.md index e50aed537ff0..e3442fc85246 100644 --- a/examples/with-glamorous/README.md +++ b/examples/with-glamorous/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-glamorous with-glamorous-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-global-stylesheet/README.md b/examples/with-global-stylesheet/README.md index 2a92a51f34a4..3c4b6212a6b4 100644 --- a/examples/with-global-stylesheet/README.md +++ b/examples/with-global-stylesheet/README.md @@ -6,6 +6,17 @@ This is an example of how you can include a global stylesheet in a next.js webap ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-global-stylesheet with-global-stylesheet-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-hashed-statics/README.md b/examples/with-hashed-statics/README.md index 9f3b2c9deb58..6043bd03697e 100644 --- a/examples/with-hashed-statics/README.md +++ b/examples/with-hashed-statics/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-hashed-statics with-hashed-statics-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-higher-order-component/README.md b/examples/with-higher-order-component/README.md index c58aa28fda93..f9d96db9f051 100644 --- a/examples/with-higher-order-component/README.md +++ b/examples/with-higher-order-component/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-higher-order-component with-higher-order-component-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): Install it and run: diff --git a/examples/with-i18next/README.md b/examples/with-i18next/README.md index d5f129f29fcb..06eb990acc59 100644 --- a/examples/with-i18next/README.md +++ b/examples/with-i18next/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-i18next with-i18next-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-jest/README.md b/examples/with-jest/README.md index 9e458162b743..0ab071502b50 100644 --- a/examples/with-jest/README.md +++ b/examples/with-jest/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-jest with-jest-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-kea/README.md b/examples/with-kea/README.md index 9741b7c24997..25de6c64df18 100644 --- a/examples/with-kea/README.md +++ b/examples/with-kea/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-kea with-kea-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-loading/README.md b/examples/with-loading/README.md index 82425223207f..0e02e90d8feb 100644 --- a/examples/with-loading/README.md +++ b/examples/with-loading/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-loading with-loading-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-material-ui-next/README.md b/examples/with-material-ui-next/README.md index 6745543ca2ce..6a60d406bedd 100644 --- a/examples/with-material-ui-next/README.md +++ b/examples/with-material-ui-next/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-material-ui-next with-material-ui-next-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/callemall/material-ui): ```bash diff --git a/examples/with-material-ui/README.md b/examples/with-material-ui/README.md index ed61db9649c6..ba3a0aae4412 100644 --- a/examples/with-material-ui/README.md +++ b/examples/with-material-ui/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-material-ui with-material-ui-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-mobx/README.md b/examples/with-mobx/README.md index 8bb6ba987ad8..fa130796f991 100644 --- a/examples/with-mobx/README.md +++ b/examples/with-mobx/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-mobx with-mobx-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-next-routes/README.md b/examples/with-next-routes/README.md index e9a0bb2514a4..ccd5b06f4c02 100644 --- a/examples/with-next-routes/README.md +++ b/examples/with-next-routes/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-next-routes with-next-routes-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-noscript/README.md b/examples/with-noscript/README.md index 4dbc1d868da1..2cac2cfbe179 100644 --- a/examples/with-noscript/README.md +++ b/examples/with-noscript/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-noscript with-noscript-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ## Development diff --git a/examples/with-pkg/README.md b/examples/with-pkg/README.md index 4a2b74903a46..a65b377d003d 100644 --- a/examples/with-pkg/README.md +++ b/examples/with-pkg/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-pkg with-pkg-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-portals/README.md b/examples/with-portals/README.md index a998b6f015df..b2b9e41649c8 100644 --- a/examples/with-portals/README.md +++ b/examples/with-portals/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-portals with-portals-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-prefetching/README.md b/examples/with-prefetching/README.md index 2a6f09732443..495197990222 100644 --- a/examples/with-prefetching/README.md +++ b/examples/with-prefetching/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-prefetching with-prefetching-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-pretty-url-routing/README.md b/examples/with-pretty-url-routing/README.md index 4ce465835255..11fe5186b7f4 100644 --- a/examples/with-pretty-url-routing/README.md +++ b/examples/with-pretty-url-routing/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-pretty-url-routing with-pretty-url-routing-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-react-ga/README.md b/examples/with-react-ga/README.md index f37b9c679ca6..61dc2042062b 100644 --- a/examples/with-react-ga/README.md +++ b/examples/with-react-ga/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-react-ga with-react-ga-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-react-helmet/README.md b/examples/with-react-helmet/README.md index 1f8cde2c578e..4dec158bfd01 100644 --- a/examples/with-react-helmet/README.md +++ b/examples/with-react-helmet/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-react-helmet with-react-helmet-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-react-intl/README.md b/examples/with-react-intl/README.md index f29d91cb2dfe..be85f682920a 100644 --- a/examples/with-react-intl/README.md +++ b/examples/with-react-intl/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-react-intl with-react-intl-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js.git): ```bash diff --git a/examples/with-react-md/README.md b/examples/with-react-md/README.md index c482b88d4a12..f6d1f994c9f9 100644 --- a/examples/with-react-md/README.md +++ b/examples/with-react-md/README.md @@ -6,6 +6,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-react-md with-react-md-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-react-toolbox/README.md b/examples/with-react-toolbox/README.md index c0a0245321df..f8cbb875d3bc 100644 --- a/examples/with-react-toolbox/README.md +++ b/examples/with-react-toolbox/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-react-toolbox with-react-toolbox-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-react-uwp/README.md b/examples/with-react-uwp/README.md index f76671e9b96e..d7833aebad52 100644 --- a/examples/with-react-uwp/README.md +++ b/examples/with-react-uwp/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-react-uwp with-react-uwp-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-react-with-styles/README.md b/examples/with-react-with-styles/README.md index 9b86592299dc..f54cf5968ee0 100644 --- a/examples/with-react-with-styles/README.md +++ b/examples/with-react-with-styles/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-react-with-styles with-react-with-styles-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-reasonml/README.md b/examples/with-reasonml/README.md index 81db0dfed5ae..4eae7099fbf6 100644 --- a/examples/with-reasonml/README.md +++ b/examples/with-reasonml/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-reasonml with-reasonml-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-rebass/README.md b/examples/with-rebass/README.md index 7b7ab1c70ff9..26b8fd25464a 100644 --- a/examples/with-rebass/README.md +++ b/examples/with-rebass/README.md @@ -6,6 +6,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-rebass with-rebass-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-recompose/README.md b/examples/with-recompose/README.md index bfdeabd1d6f3..ba08a50ed222 100644 --- a/examples/with-recompose/README.md +++ b/examples/with-recompose/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-recompose with-recompose-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-redux-code-splitting/README.md b/examples/with-redux-code-splitting/README.md index 2a8a204e9f3c..23a7335f8f90 100644 --- a/examples/with-redux-code-splitting/README.md +++ b/examples/with-redux-code-splitting/README.md @@ -5,6 +5,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-redux-code-splitting with-redux-code-splitting-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-redux-observable/README.md b/examples/with-redux-observable/README.md index f3812b7edc72..d150136cd5b5 100644 --- a/examples/with-redux-observable/README.md +++ b/examples/with-redux-observable/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-redux-observable with-redux-observable-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-redux-reselect-recompose/README.md b/examples/with-redux-reselect-recompose/README.md index ae0771b68d13..8dd40016da8a 100644 --- a/examples/with-redux-reselect-recompose/README.md +++ b/examples/with-redux-reselect-recompose/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-redux-reselect-recompose with-redux-reselect-recompose-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-redux-saga/README.md b/examples/with-redux-saga/README.md index 318463f7d014..74b3bb12c04c 100644 --- a/examples/with-redux-saga/README.md +++ b/examples/with-redux-saga/README.md @@ -6,6 +6,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-redux-saga with-redux-saga-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-redux/README.md b/examples/with-redux/README.md index d0da0e4c3a35..f97736223306 100644 --- a/examples/with-redux/README.md +++ b/examples/with-redux/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-redux with-redux-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-refnux/README.md b/examples/with-refnux/README.md index ecc6cb2750f2..6f1d8ddfa1e6 100644 --- a/examples/with-refnux/README.md +++ b/examples/with-refnux/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-refnux with-refnux-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-relay-modern/README.md b/examples/with-relay-modern/README.md index 9759952f555f..154c2dc4d3e9 100644 --- a/examples/with-relay-modern/README.md +++ b/examples/with-relay-modern/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-relay-modern with-relay-modern-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-scoped-stylesheets-and-postcss/README.md b/examples/with-scoped-stylesheets-and-postcss/README.md index a00b256d0aee..e02951ee33de 100644 --- a/examples/with-scoped-stylesheets-and-postcss/README.md +++ b/examples/with-scoped-stylesheets-and-postcss/README.md @@ -5,6 +5,17 @@ This is an example of using scoped stylesheets and PostCSS, heavily influenced b ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-scoped-stylesheets-and-postcss with-scoped-stylesheets-and-postcss-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-semantic-ui/README.md b/examples/with-semantic-ui/README.md index 217f9bda42db..b1814ff7c4c0 100644 --- a/examples/with-semantic-ui/README.md +++ b/examples/with-semantic-ui/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-semantic-ui with-semantic-ui-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-sentry/README.md b/examples/with-sentry/README.md index 7d15975cb743..3b5476951e53 100644 --- a/examples/with-sentry/README.md +++ b/examples/with-sentry/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-sentry with-sentry-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): Install it and run: diff --git a/examples/with-shallow-routing/README.md b/examples/with-shallow-routing/README.md index 05abbd31747a..ea74f59fe81c 100644 --- a/examples/with-shallow-routing/README.md +++ b/examples/with-shallow-routing/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-shallow-routing with-shallow-routing-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-socket.io/README.md b/examples/with-socket.io/README.md index 1b35df46f31c..10e1c7e0702e 100644 --- a/examples/with-socket.io/README.md +++ b/examples/with-socket.io/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-socket.io with-socket.io-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-static-export/README.md b/examples/with-static-export/README.md index eb620087c6a6..a30406c1de10 100644 --- a/examples/with-static-export/README.md +++ b/examples/with-static-export/README.md @@ -2,6 +2,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-static-export with-static-export-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-styled-components/README.md b/examples/with-styled-components/README.md index 57aaac6e73ad..4ae3c97f8525 100644 --- a/examples/with-styled-components/README.md +++ b/examples/with-styled-components/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-styled-components with-styled-components-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-styled-jsx-plugins/README.md b/examples/with-styled-jsx-plugins/README.md index 09cb39392326..0df9cff02e02 100644 --- a/examples/with-styled-jsx-plugins/README.md +++ b/examples/with-styled-jsx-plugins/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-styled-jsx-plugins with-styled-jsx-plugins-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-styled-jsx-scss/README.md b/examples/with-styled-jsx-scss/README.md index 60aeee10637b..1240a31e4df5 100644 --- a/examples/with-styled-jsx-scss/README.md +++ b/examples/with-styled-jsx-scss/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-styled-jsx-scss with-styled-jsx-scss-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-styletron/README.md b/examples/with-styletron/README.md index 2be74ea6e507..2a2e394b49c8 100644 --- a/examples/with-styletron/README.md +++ b/examples/with-styletron/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-styletron with-styletron-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-sw-precache/README.md b/examples/with-sw-precache/README.md index 5f3e7b24c816..7b987f62a461 100644 --- a/examples/with-sw-precache/README.md +++ b/examples/with-sw-precache/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-sw-precache with-sw-precache-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-tailwindcss/README.md b/examples/with-tailwindcss/README.md index c20bc17066ec..adf7e3d6b0c8 100644 --- a/examples/with-tailwindcss/README.md +++ b/examples/with-tailwindcss/README.md @@ -6,6 +6,17 @@ This is an example of how you can include a global stylesheet in a next.js webap ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-tailwindcss with-tailwindcss-app +``` + +### Download manually + If you like [create-next-app](https://github.com/segmentio/create-next-app) and/or [yarn](https://yarnpkg.com/en/docs/cli/create) simply run: ```bash diff --git a/examples/with-typescript/README.md b/examples/with-typescript/README.md index 5c2ff819fec0..4552794d078d 100644 --- a/examples/with-typescript/README.md +++ b/examples/with-typescript/README.md @@ -4,8 +4,28 @@ This is a really simple project that show the usage of Next.js with TypeScript. -## How to use it? +## How to use it? +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-typescript with-typescript-app +``` + +### 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/master | tar -xz --strip=2 next.js-master/examples/with-typescript +cd with-typescript +``` + +Install it and run: + ``` npm install npm run dev diff --git a/examples/with-universal-configuration-runtime/readme.md b/examples/with-universal-configuration-runtime/readme.md index c072e6b63969..ed47feb881aa 100644 --- a/examples/with-universal-configuration-runtime/readme.md +++ b/examples/with-universal-configuration-runtime/readme.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-universal-configuration-runtime with-universal-configuration-runtime-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-universal-configuration/README.md b/examples/with-universal-configuration/README.md index 66a6a3139f91..b72559322f0a 100644 --- a/examples/with-universal-configuration/README.md +++ b/examples/with-universal-configuration/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-universal-configuration with-universal-configuration-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-url-object-routing/README.md b/examples/with-url-object-routing/README.md index 88a116216646..c8af71130b9c 100644 --- a/examples/with-url-object-routing/README.md +++ b/examples/with-url-object-routing/README.md @@ -3,6 +3,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-url-object-routing with-url-object-routing-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-webpack-bundle-analyzer/README.md b/examples/with-webpack-bundle-analyzer/README.md index 00619a4311f3..eb6b5f66f024 100644 --- a/examples/with-webpack-bundle-analyzer/README.md +++ b/examples/with-webpack-bundle-analyzer/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-webpack-bundle-analyzer with-webpack-bundle-analyzer-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash diff --git a/examples/with-webpack-bundle-size-analyzer/README.md b/examples/with-webpack-bundle-size-analyzer/README.md index c20efc4c6270..e5bfb42c0652 100644 --- a/examples/with-webpack-bundle-size-analyzer/README.md +++ b/examples/with-webpack-bundle-size-analyzer/README.md @@ -4,6 +4,17 @@ ## How to use +### Using `create-next-app` + +Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: + +``` +npm i -g create-next-app +create-next-app --example with-webpack-bundle-size-analyzer with-webpack-bundle-size-analyzer-app +``` + +### Download manually + Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash