Skip to content

kingRayhan/marked-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marked-blog

A Blog rest api provider based of markdown files

Install dependencies

yarn

Or by npm

npm install

posts

In posts directory you will put your post markdown files with this naming system

YYYY-MM-DD-post-title-by-slug

Endpoints

url resource
/ A array of posts with meta and compiled post content
/:slug A object of single post
/tag/:tagName A array of filtered post of specific tag name

Example Response

[
  {
    "meta": {
      "title": "post title",
      "description": "Post description",
      "slug": "this-is-post-slug",
      "tags": [
        "tag1",
        "tag2",
        "tag3",
        ................
        ................

      ],
      "date": {
        "date": "2019-03-17",
        "year": "2019",
        "month": "03",
        "day": "17"
      }
    },
    "body": ".. compiled html ..."
  },
  ............
  ............
]

About

Nodejs blog api based on markdown

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published