Coder Social home page Coder Social logo

eteplus / giog Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 2.0 864 KB

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

Home Page: https://www.eteplus.com

License: MIT License

JavaScript 93.59% HTML 0.45% Vue 5.96%
vue vuex vue-router vuessr koa github-issues-blog pwa ssr

giog's Introduction

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

giog's People

Contributors

eteplus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.