@tomsd/md-server v2.1.0
@tomsd/md-server
Installation
npm install @tomsd/md-serverUsage
Initializing
npx mdc --initopen md-server.config.js and fill your MongoDB uri.
To Serve
npx mds --startsee the page with your browser http://localhost:3000/
or deploy it on your Heroku or some platforms.
To Edit
npx mdc --add directory/ofmine --file mdYou can edit the markdown file when the file in your directory is generated.
To Save
npx mdc --save directory/ofmine/ --file mdThe web server will serve the markdown as html. see in your browser: http://localhost:3000/md/directory/ofmine/
To clear your local directory
npx mdc --clearTo Get
npx mdc --get directory/ofmine/ --file mdabout GitHub limit
mdc mdc --save what/ever/ --file md command will send a HTTP request for each md file.
The limit count of anonymous request will be up to 60 times in an hour, and the limit will increase 5000 times in an hour if Basic Authentication is provided.
The dotenv file can indicate the user and token for the command.
1. make an .env
1. write your user name and personal access token in it
1. then Basic Authentication will be enabled, limit count will be up.
GITHUB_USER=your_github_user
GITHUB_USER_TOKEN=personal_access_token