GraphQL x Nuxt My Practice
https://github.com/takanorip/nuxt-graphql-sample
Get GitHub Token
- https://github.com/settings/tokens
- Create .env File(Add Key GITHUB_TOKEN)
- Load GITHU_TOKEN in nuxt.config.js.
Reference Page: Nuxt.jsにおけるenvファイルの利用(初学者向けハンズオン)
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm start
# generate static project
$ npm run generate
For detailed explanation on how things work, checkout the Nuxt.js docs.