1 Star 0 Fork 1

王行舟 / essay2

forked from 梁行知 / essay2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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 Category, Search, Comment, Email notification and Draft box.

Bootstrap

Run MongoDB

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

# yourDBpath is your DB folder(anywhere)
$ 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

const isPro = process.env.NODE_ENV === "production";

module.exports = {
  mongodb: {
    host: "127.0.0.1",
    database: "essay",
    port: 27017,
    user: "",
    pass: ""
  },
  app: {
    domain: isPro ? "https://www.86886.wang" : "http://127.0.0.1:3025"
  },
  admin: {
    username: "admin",
    nickname: "wmui",
    password: "123456",
    description: "前端工程师",
    email: "qq22337383@gmail.com"
  },
  jwt: {
    expiresIn: 365 * 86400,
    secret: "essay" // Secret is very important, please modify it.
  },
  // 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/blog.git",
    path: "/root/blog"
  }
};

Default login username: admin Default login password: 123456

Deploy Essay

If you want to deploy on production environment, you can just do 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 群:4882 68810

License

GPL-3.0

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/xingzhouCSharp/essay2.git
git@gitee.com:xingzhouCSharp/essay2.git
xingzhouCSharp
essay2
essay2
master

搜索帮助