https://github.com/eteplus/giog
It's based on githud issues and built with Vue 2.x, vue-router & vuex with server-side rendering by koa
https://github.com/eteplus/giog
github-issues-blog koa pwa ssr vue vue-router vuessr vuex
Last synced: 11 months ago
JSON representation
It's based on githud issues and built with Vue 2.x, vue-router & vuex with server-side rendering by koa
- Host: GitHub
- URL: https://github.com/eteplus/giog
- Owner: eteplus
- License: mit
- Created: 2018-03-07T12:05:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T10:12:01.000Z (over 8 years ago)
- Last Synced: 2025-04-06T20:22:22.301Z (about 1 year ago)
- Topics: github-issues-blog, koa, pwa, ssr, vue, vue-router, vuessr, vuex
- Language: JavaScript
- Homepage: https://www.eteplus.com
- Size: 844 KB
- Stars: 15
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
# install dependencies
npm install # or yarn
```
1. Modify config/config.js.
```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: ''
}
```
2. Copy config/github.example.json to config/github.json and modify it.
> Apply accessToken -> [Page](https://github.com/settings/tokens) -> Personal access tokens -> Generate new token
> pageSize: The number of synchronizations per page
```json
{
"accessToken": "github accessToken",
"owner": "github username",
"repository": "issues repository",
"pageSize": 8
}
```
3. Excute Database migrate and sync issues
```bash
npm run db:migrate
npm run sync
```
Reverse:
> All data will be cleared, u need to re-excute the above operation
```bash
npm run db:migrate:undo
```
## Build Setup
```bash
# 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
```bash
pm2 startOrReload pm2.json
```
## Author
**Giog** © [ETEPLUS](https://github.com/eteplus), Released under the [MIT](https://github.com/eteplus/giog/blob/master/LICENSE) License