This project use to serve markdown file as html in the simplest way base on koa2 and marked, feel free to clone, fork, merge request and deploy to your own server
- public user: http://tutorial.xbearx.com/public/sample.md
- http://[host]/[username]/[filename]
username: folder name, username=='public' will serve public folder in the project, username =='admin' will verify the secrect in the query params 'pwd'
# install dependency
yarn
# debug
npm run debug
# run
npm start
yarn
npm run build
# mdRootPath: your md file root folder, your can place and edit your md file anywhere and spcificed the root path here
# you need to install pm2
# secrect: pwd for admin user
NODE_ENV=production mdRootPath=/data/files/ secrect=123456 pm2 start index.js --name="cms"
- serve md as html
- password protected
- data file seperated