Skip to content

liaoliaojun/nuxt-apollo-example

Repository files navigation

nuxt-apollo-example

Nuxt.js & Graphql-codegen & Apollo Example

Blog

blog address: https://liaoliaojun.com

Build Setup

# install dependencies
$ yarn

# set hosts
127.0.0.1 dev.liaoliaojun.com

# serve with hot reload at https://dev.liaoliaojun.com:3001
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# regenerate typeschema  graphql-codegen
$ yarn typeschema

graphql-codegen related

docs: https://www.liaoliaojun.com/article/ZDnI24nky