Mirror of HackMD with some custom changes
Find a file
2015-07-01 00:12:16 +08:00
lib Marked as 0.2.9 2015-06-01 18:04:25 +08:00
public use minified bootstrap-social on cdn 2015-07-01 00:12:16 +08:00
app.js Marked as 0.2.9 2015-06-01 18:04:25 +08:00
backup.sh Marked as 0.2.9 2015-06-01 18:04:25 +08:00
config.js Marked as 0.2.8 2015-05-15 12:58:13 +08:00
hackmd_schema.sql Added database schema from pg_dump 2015-05-08 11:47:41 +08:00
LICENSE Initial commit 2015-05-04 14:06:46 +08:00
package.json Marked as 0.2.9 2015-06-01 18:04:25 +08:00
Procfile First commit, version 0.2.7 2015-05-04 15:53:29 +08:00
README.md Marked as 0.2.9 2015-06-01 18:04:25 +08:00
run.sh Marked as 0.2.9 2015-06-01 18:04:25 +08:00

HackMD 0.2.9

HackMD is a realtime collaborative markdown notes on all platforms.
Inspired by Hackpad, but more focusing on speed and flexibility.
Still in early stage, feel free to fork or contribute to this.

Thanks for your using! 😄

Dependency

  • PostgreSQL 9.3.6 or 9.4.1
  • MongoDB 3.0.2

Import db schema

The notes are store in PostgreSQL, the schema is in the hackmd_schema.sql
To import the sql file in PostgreSQL, type psql -i hackmd_schema.sql

The users, temps and sessions are store in MongoDB, which don't need schema, so just make sure you have the correct connection string.

Config

There are some config you need to change in below files

./run.sh
./config.js
./public/js/common.js

The script run.sh, it's for someone like me to run the server via npm package forever, and can passing environment variable to the server, like heroku does.

To install forever, just type npm install forever -g

You can use SSL to encrypt your site by passing certificate path in the config.js and set usessl=true

Run a server

To run the server, type bash run.sh
Log will be at ~/.forever/hackmd.log

Stop a server

To stop the server, simply type forever stop hackmd

Backup db

To backup the db, type bash backup.sh
Backup files will be at ./backups/

License under MIT.