The Wayback Machine - https://web.archive.org/web/20190501145757/https://github.com/wmui/essay
Skip to content
A blog system based on Nuxt.js
Branch: master
Clone or download
Latest commit e6835b4 Apr 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets build: v3.1.0 Apr 30, 2019
backup fix: cache Apr 17, 2019
components build: v3.1.0 Apr 30, 2019
layouts build: v3.1.0 Apr 30, 2019
logs fix: cache Apr 17, 2019
middleware fix: cache Apr 17, 2019
pages build: v3.1.0 Apr 30, 2019
plugins fix: cache Apr 17, 2019
public build: v3.1.0 Apr 30, 2019
server build: v3.1.0 Apr 30, 2019
static build: v3.1.0 Apr 30, 2019
store build: v3.1.0 Apr 30, 2019
test fix: cache Apr 17, 2019
.editorconfig fix: cache Apr 17, 2019
.eslintrc.js fix: cache Apr 17, 2019
.gitignore build: v3.1.0 Apr 30, 2019
.travis.yml fix: cache Apr 17, 2019
README.md build: v3.1.0 Apr 30, 2019
ecosystem.config.js build: v3.1.0 Apr 30, 2019
nuxt.config.js build: v3.1.0 Apr 30, 2019
package.json build: v3.1.0 Apr 30, 2019
yarn.lock build: v3.1.0 Apr 30, 2019

README.md

Build Status Version License

Demo Site

Essay - Simple but not simple blog system

Features

  • Support server rendering.
  • Progressive Web Apps.
  • Lightweight Markdown editor based on VueJS.
  • Support Tag, Category, Search, Page, Comment, Email notification and Draft box.

Bootstrap

Run MongoDB

Please install MongoDB and Node.js, then start the database.

# yourDBpath is your DB folder(Any position)
$ sudo mongod --dbpath yourDBpath

Run Essay

$ git clone https://github.com/wmui/essay

$ cd essay

$ yarn

$ npm run dev # Visit http://127.0.0.1:3025

Tips: Do not use localhost visit the project, because of cookie is domain only support 127.0.0.1.

Global Config

Global config file is server/config/global.config.js, the default configuration like this

module.exports = {
    mongodb: {
        host: '127.0.0.1',
        database: 'essay',
        port: 27017,
        user: '',
        pass: '',
    },
    app: {
        domain: 'http://127.0.0.1:3025',
        siteName: 'Essay',
    },
    // Init admin information
    admin: {
        user: 'admin',
        pass: '123456',
        email: 'qq22337383@gmail.com',
    },
    // Secret is very important, please remember to modify it.
    jwt: {
        expiresIn: 365 * 86400,
        secret: 'essay',
    },
    // If you want to send Email when received a comment, please config SMTP Server.
    email: {
        host: 'smtp.qq.com',
        user: '22337383@qq.com',
        pass: '',
    },
    // If you want to support GitHub login,please config clientID and secret.
    github: {
        id: '9588f02db3f89d176f36',
        secret: '10f4f1daa81764664fafb2e50be2c6985ef139f8',
        scope: 'user',
    },
    // If you want to support auto deploy,please config Server IP, repo and path.
    pm2: {
        host: '116.196.17.78',
        repo: 'git@github.com:wmui/essay.git',
        path: '/root/essay',
    },
}

Default login email: qq22337383@gmail.com Default login password: 123456

Deploy Essay

If you want to deploy on production environment, you can do just like this

$ git clone https://github.com/wmui/essay

$ cd essay

$ yarn

$ npm run build

$ pm2 start npm --name "Essay" -- start

如果需要自动化部署,可以参考这里Node项目自动化部署

Join us

QQ群:488268810

License

GPL-3.0

You can’t perform that action at this time.