Skip to content
/ giog Public

It's based on githud issues and built with Vue 2.x, vue-router & vuex with server-side rendering by koa

License

Notifications You must be signed in to change notification settings

eteplus/giog

Repository files navigation

Giog

This Blog built with Vue 2.x, vue-router & vuex with server-side rendering by koa.

It's powered by Github Issues and use github GraphQL API v4

Init Setup

Required:

  • node >= 8.9.4
  • npm >= 5.6.0
# install dependencies
npm install # or yarn
  1. Modify config/config.js.
userInfo: {
  github: 'https://github.com/eteplus',
  userName: 'ETEPLUS',
  avatar: '/static/img/avatar.jpeg',
  motto: 'Designer and Coder. ^_^',
},

siteInfo: {
  name: 'ETEPLUS',
  // website record number - ICP备xxxxx号
  recordText: ''
}
  1. Copy config/github.example.json to config/github.json and modify it.

Apply accessToken -> Page -> Personal access tokens -> Generate new token

pageSize: The number of synchronizations per page

{
  "accessToken": "github accessToken",
  "owner": "github username",
  "repository": "issues repository",
  "pageSize": 8
}
  1. Excute Database migrate and sync issues
npm run db:migrate

npm run sync

Reverse:

All data will be cleared, u need to re-excute the above operation

npm run db:migrate:undo

Build Setup

# serve in dev mode, with hot reload at 127.0.0.1:3030
npm run dev

# build for production
npm run build

# serve in production mode
npm start

Deploy Setup

Modify pm2.json and use pm2 to manage the application

pm2 startOrReload pm2.json

Author

Giog © ETEPLUS, Released under the MIT License

About

It's based on githud issues and built with Vue 2.x, vue-router & vuex with server-side rendering by koa

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published