@@ -8,22 +8,23 @@ By importing a `.gql` or `.graphql` schema into FaunaDB ([see our sample schema
...
@@ -8,22 +8,23 @@ By importing a `.gql` or `.graphql` schema into FaunaDB ([see our sample schema
## How to use
## How to use
You can start with this template [using `create-next-app`](#use-create-next-app) or by [downloading the repository manually](#download-manually).
You can start with this template [using `create-next-app`](#using-create-next-app) or by [downloading the repository manually](#download-manually).
To use a live FaunaDB database, create one and import this example's `schema.gql` file using the FaunaDB console. Create a client secret, then paste it into `next.config.js`.
To use a live FaunaDB database, create one and import this example's `schema.gql` file using the FaunaDB console. Create a client secret, then paste it into `next.config.js`.
### Use `create-next-app`
### Using `create-next-app`
Download [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) to bootstrap the example: