This repo contains an Express application that exposes two end-points:
GET /posts
Returns an array of article summaries in the format of:
[
{
title: <article title>,
author: <author name>,
slug: <article slug>,
tags: [<array>, <of>, <common>, <words>]
},
...
]
GET /post/
Returns a single record as a JSON object in the format:
{
title: <article title>,
author: <author name>,
content: <markdown content of the article>,
tags: [<array>, <of>, <common>, <words>]
}
Pre-requisits: Node, npm
The API can be launched by:
- Clone this repo:
$ git clone [email protected]:mediasuitenz/client-coding-exercise.git
- Move into the directory and install the dependencies:
$ cd client-coding-exercise
$ npm i
- Launch the application:
$ node index.js