Skip to content

Commit 90778db

Browse files
Gregcop1dunglas
andcommitted
fix: @dunglas review
Co-Authored-By: Kévin Dunglas <[email protected]>
1 parent fc503c2 commit 90778db

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

client-generator/nextjs.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Next.js Client Generator generates routes and components for Server Side Ren
66

77
## Install
88

9-
### Next + Express server
9+
### Next + Express Server
1010

1111
Create a [Next.js application with express server](https://github.com/zeit/next.js/tree/canary/examples/custom-server-express). The easiest way is to execute:
1212

@@ -16,22 +16,23 @@ $ npx create-next-app --example custom-server-express your-app-name
1616
$ yarn create next-app --example custom-server-express your-app-name
1717
```
1818

19-
### Enable Typescript
19+
### Enabling Typescript
2020

2121
Install typescript dependencies
2222

2323
```bash
2424
$ yarn add @types/next @zeit/next-typescript
2525
```
2626

27-
Enable Typescript in your Next.js configuration file ("next.config.js")
27+
Enable Typescript in your Next.js configuration file (`next.config.js`):
28+
2829
```javascript
2930
const withTypescript = require('@zeit/next-typescript');
3031

3132
module.exports = withTypescript();
3233
```
3334

34-
Create a ".babelrc" file to store Babel configuration
35+
Create a `.babelrc` file to store Babel configuration:
3536
```json
3637
{
3738
"presets": [
@@ -41,7 +42,7 @@ Create a ".babelrc" file to store Babel configuration
4142
}
4243
```
4344

44-
Create a "tsconfig.json" file to store Typescript configuration
45+
Create a `tsconfig.json` file to store Typescript configuration:
4546
```json
4647
{
4748
"compilerOptions": {
@@ -67,24 +68,24 @@ Create a "tsconfig.json" file to store Typescript configuration
6768
}
6869
```
6970

70-
### Generator dependencies
71+
### Installing the Generator Dependencies
7172

7273
Install required dependencies:
7374

7475
```bash
7576
$ yarn add lodash @types/lodash isomorphic-unfetch
7677
```
7778

78-
## Launch
79+
## Starting the Project
7980

8081
You can launch the server with
8182
```bash
8283
$ yarn dev
8384
```
8485

85-
and access it through [http://localhost:3000](http://localhost:3000)
86+
and access it through `http://localhost:3000`
8687

87-
## Generating routes
88+
## Generating Routes
8889

8990
```bash
9091
$ npx @api-platform/client-generator https://demo.api-platform.com src/ -g next --resource book

0 commit comments

Comments
 (0)