1. Install node https://nodejs.org/en/download/ - Open your system terminal command on windows - Mac > spotlight with CMD+Space > search terminal.

2. Check Node version and NPM version node -v npm -v

3. Create db.json file locally - add valid JSON data setup custom routes if needed as properties in the data object

4. Install json-server on your system using the terminal npm install -g json-server (prefix with sudo if on a mac and you encounter permissions issue.)

5. Run the JSON server package - json-server --watch db.json - Open your web browser to http://localhost:3000/posts

{
    "posts": [
        {
            "id": 1,
            "title": "json-server",
            "author": "typicode"
        },
        {
            "id": 2,
            "title": "Test 1",
            "author": "Laurence Svekis"
        }
    ],
    "comments": [
        {
            "id": 1,
            "body": "some comment",
            "postId": 1
        }
    ],
    "profile": {
        "name": "typicode"
    },
    "tester": {
        "val": 1
    }
}

http://localhost:3000/