2.2.6 • Published 6 years ago

vueblog v2.2.6

Weekly downloads
10
License
-
Repository
-
Last release
6 years ago

VueBlog v2

中文文档

VueBlog is a lightweight blog application Live Demo

Technology stack

  • FrontEnd: Nuxt.js + Vuex
  • BackEnd: Mongoose + Koa

Features

  • Server Side Rendering.
  • Progressive Web App.
  • A lightweight markdown editor base Vue.js.
  • Support tag management and archive management.

Build Setup

First you should install MongoDB and Node.js, open the database service

# install dependencies
npm install # or yarn

# serve in dev mode, with hot reload at localhost:3000
npm run dev

# build for production
npm run build

# serve in production mode
npm start

Global config

Config file is server/config/index.js, default username:q, default password: q

export default {
  user: {
    role: 'superAdmin',
    username: 'q',
    password: 'q',
    email: 'qq22337383@gmail.com',
    nickname: 'VueBlog',
    motto: 'Never too old to learn',
    avatar: 'avatar.png'
  },
  jwt: {
    secret: 'vueblog'
  },
  mongodb: {
    host: '127.0.0.1',
    database: 'vueblog',
    port: 27017,
    username: '',
    password: ''
  },
  production: {
    host: '198.13.32.165',
    domain: 'https://vueblog.86886.wang'
  },
  app: {
    host: '127.0.0.1',
    port: 3000,
    routerBaseApi: '/api'
  }
}

License

GPL-3.0