Browse Source

adjust readme

dev
Christian Ziermann 4 years ago
parent
commit
97ae4bb29b
1 changed files with 37 additions and 12 deletions
  1. +37
    -12
      README.md

+ 37
- 12
README.md View File

# Prepation # Prepation


``npm init`` ```
npm init
```


See More <https://graphql-code-generator.com/docs/getting-started/installation> See More <https://graphql-code-generator.com/docs/getting-started/installation>


``npm add --save graphql`` ```
npm add --save graphql
```
or or
``yarn add graphql`` ```
yarn add graphql
```




``npm add --save-dev @graphql-codegen/cli`` ```
npm add --save-dev @graphql-codegen/cli
```
or or
``yarn add -D @graphql-codegen/cli`` ```
yarn add -D @graphql-codegen/cli
```




``npx graphql-codegen init`` ```
npx graphql-codegen init
```




``npm add --save-dev @graphql-codegen/typescript`` ```
npm add --save-dev @graphql-codegen/typescript
```
or or
``yarn add -D @graphql-codegen/typescript`` ```
yarn add -D @graphql-codegen/typescript
```


# Server # Server


``npm add apollo-server`` ```
npm add apollo-server
```


``npm install @types/node --save-dev`` ```
npm install @types/node --save-dev
```


``` ```
npx tsc --init --rootDir src --outDir build \ npx tsc --init --rootDir src --outDir build \
--module commonjs --allowJs true --noImplicitAny true --module commonjs --allowJs true --noImplicitAny true
``` ```


``npm install --save-dev ts-node nodemon rimraf`` ```
npm install --save-dev ts-node nodemon rimraf
```




# UI # UI


* init new Angular project ``ng new graphql-demo`` * init new Angular project
```
ng new graphql-demo
```

Loading…
Cancel
Save