Skip to content

miyaoka/gh-blog

Repository files navigation

github-blog

gh-blog

GitHub Issue as Blog

Article

Demo

Demo site: https://gh-blog.netlify.com/

Env settings

Use direnv

  • Copy .envrc.example to .envrc

Fill out params

Create your OAuth tokens at Personal Access Tokens, and set below.

  • GH_READONLY_TOKEN: (Required) To fetch issues.
    • Select scopes: Turn off all scopes. (will display as public access)
  • GH_WRITE_TOKEN: (Optional) To edit issues on blog site. Don't use in public!!
    • Select scopes: Only public_repo scope.

Set target repository

  • GH_REPO_OWNER
  • GH_REPO_NAME

Build Setup

# 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.

Releases

No releases published

Packages

No packages published