VueBlog is a lightweight blog application Live Demo
- FrontEnd: Nuxt.js + Vuex
- BackEnd: Mongoose + Koa
- Server Side Rendering.
- Progressive Web App.
- A lightweight markdown editor base Vue.js.
- Support tag management and archive management.
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
Config file is server/config/index.js
, default username:q, default password: q
export default {
user: {
role: 'superAdmin',
username: 'q',
password: 'q',
email: '[email protected]',
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'
}
}