以记笔记目的为主的轻量级博客,使用Markdown语法。
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
models
node_modules
public
routes
views
.gitignore
.gitmodules
README.md
config.json.default
package-lock.json
package.json
server.js

README.md

Archive

以记笔记目的为主的轻量级博客,使用Markdown语法。

正在开发中。。。

(暂停开发了一段时间,再反过来看models发现写的好烂)

个人站点

How To Use

Depend

  • NodeJS
  • MongoDB

Step

  1. install depends
  2. run git clone https://github.com/Lensual/archive.git
  3. rename & edit your config.json.sample to config.json
  4. run node server.js

config.json

  • site_title 站点标题
  • db_uri MongoDB地址 "mongodb://[username[:password]@]localhost[:27017]/archive_db"
  • session_maxAge Cookie超时时间 默认 600000ms (10mins)

systemd daemon

  1. sudo wget -O /lib/systemd/system/archive.service https://raw.githubusercontent.com/Lensual/archive/master/docs/systemd/archive.service
  2. replace $NODE_HOME sudo sed -i "s#\$NODE_HOME#$NODE_HOME#g" /lib/systemd/system/archive.service
  3. sudo systemctl enable archive.service
  4. sudo systemctl start archive.service