GithubHelp home page GithubHelp logo

luoxiangfan / essay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from essay-org/essay

0.0 2.0 0.0 4.03 MB

A blog system based on Nuxt.js

Home Page: https://blog.86886.wang

JavaScript 32.07% Vue 44.87% CSS 9.95% HTML 13.11%

essay's Introduction

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: "[email protected]"
  },
  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: "[email protected]: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

essay's People

Contributors

wmui avatar sinchang avatar

Watchers

James Cloos 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.