GitHub Issue as Blog
Demo site: https://gh-blog.netlify.com/
- Copy
.envrc.example
to.envrc
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
)
- Select scopes: Turn off all scopes. (will display as
GH_WRITE_TOKEN
: (Optional) To edit issues on blog site. Don't use in public!!- Select scopes: Only
public_repo
scope.
- Select scopes: Only
Set target repository
GH_REPO_OWNER
GH_REPO_NAME
# 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.