Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FrediBach/ac09a0dc589d5c20570b2c64aa336d59 to your computer and use it in GitHub Desktop.
Save FrediBach/ac09a0dc589d5c20570b2c64aa336d59 to your computer and use it in GitHub Desktop.

Revisions

  1. FrediBach created this gist Jul 12, 2018.
    53 changes: 53 additions & 0 deletions Frontend First Development - Sample Data
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    module.exports = {
    users: [
    {
    id: 123,
    name: "John Doe"
    },
    {
    id: 456,
    name: "Jane Doe"
    }
    ],
    posts: [
    {
    id: 1,
    title: "Lorem Ipsum",
    content: "Content of post 1 ...",
    views: 254,
    user_id: 123,
    date: '2018-03-23'
    },
    {
    id: 2,
    title: "Sic Dolor amet",
    content: "Content of post 2 ...",
    views: 65,
    user_id: 456
    }
    ],
    comments: [
    {
    id: 987,
    post_id: 1,
    user_id: 123,
    body: "First commment ...",
    date: '2018-03-24'
    },
    {
    id: 995,
    post_id: 1,
    user_id: 456,
    body: "Second comment ...",
    date: '2018-03-25'
    },
    {
    id: 452,
    post_id: 1,
    user_id: 456,
    comment_id: 987,
    body: "This is a reply",
    date: '2018-03-27'
    }
    ]
    };