GlobeTownDevs / api

0 stars 1 forks source link

Project structure #7

Closed tbtommyb closed 8 years ago

tbtommyb commented 8 years ago

Someone needs to lay out the directory and add the basic HTML etc. We could probably get away with just a single JS file so I guess this would work:

styles/
  main.css
  infographic.css
tests/
  mockXHR.js
  apis.js
index.js
index.html

But maybe the infographic will be tricky enough that it needs a separate JS file?

marisid commented 8 years ago

I can do that now :smile:

njsfield commented 8 years ago
var database = {
        "BBC": {
            "name": "BBC News",
            "id": "bbc-news",
            "headline": [{
                "title": "something serious",
                "description": "this is an article about something totally serious",
                "topics": [
                    {
                    "name":"politics",
                    "score":0.64
                    },{
                    "name":"arts",
                    "score":0.98
                    }
                ]
            }]
        },
        "mirror": {
            "name": "Mirror",
            "id": "daily mirror",
            "headline": [{
                "title": "something serious",
                "description": "this is an article about something totally serious",
                "topics": [
                    {
                    "name":"politics",
                    "score":0.64
                    },{
                    "name":"arts",
                    "score":0.98
                    }
                ]
            }]
        }
    }