A blog system developed by using Nodejs Major modules: Koa2, Sequelize(ORM), EJS(front end engine), Semantic UI
Preview: My New Blog
- Nodejs v9.0+
- MySQL 5.3+
- Add, Delete, Update articles
- Archive articles
- project page
- Introduction page
First install all the dependencies
$ npm install
And then config your blog.
Finally, run it on your server. You can choose to use pm2
pm2 start app.js
You can login into the account set in the configuration file by accessing
/manage/login
.
First copy a config.js
from config-example.js
, and then modify it as your will.
title
: The title of the website.subtitle
: The subtitle of the website.author
: Your name,admins
: all admins will be created at the first time of the execution. Keys are username and values are password.article_per_page
: You knoweditor
: the default editor(editor.md recommended)-> support: simditor / editor.md; the former one is a rich text editor, and the latter one is a markdown editor.favicon
: (Currently this item is not useful) The path to the faviconarticle_cover_count
: The number of front covers(starts with "material-" and ends with ".png", you can store them in /static/images)db
: database connection configurationhost
: the host of the databaseport
: the port of the databaseusername
: the root user that can access the databasepassword
: the password of the userdialect
: type of databases(you can check Sequelize for supported database list)
manage
: the configuration of the admin pagearticle_pageinate
: the maximum count of articles listed in the manage list.user_pageinate
: (Currently this item is not useful)
live2d
: configuration of live2d on the homepagemodel
: which model to use (see /static/live2d/model)conf
: configuration file of the model.
about
: the data for about pageavatar_url
: the url of the avatarname
: your nicknameintroduction
: your full self-introabout_content
: the markdown file inviews/static
that stores your long introduction. This supports features inmarkdown-it-decorate
skills
: self-rating skills
session_sec
: the session secrete keyurl
: the url of the blogport
: which port does the blog running onmode
: switch of logging