Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.51 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.51 KB

kannatusilmoitukset.fi

Front end for the citizens' initiative visualization service https://kannatusilmoitukset.fi/

Data

If you'd like to get the initiative support history data, please contact us.

You may use the data for any purpose.

Currently automatically updated data versions:

https://kannatusilmoitukset.fi/initiatives/img/meta.json https://kannatusilmoitukset.fi/initiatives/img/33.png https://kannatusilmoitukset.fi/initiatives/33.json

Installation

Generate the static page and assets as described under Development.

Redirect all non-static requests to index.html and make data available, nginx example:

server {
    server_name kannatusilmoitukset.tunk.io;
    root /home/pkjedi/workspace/kannatusilmoitukset-front/web;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }

    # Make the data under /initiatives/ available
    location /initiatives/ {
        proxy_pass https://kannatusilmoitukset.fi;
    }
}

Development

Requires node.js and npm (I used nodeenv)

npm install -g grunt-cli bower # install grunt and bower
git clone [email protected]:fraktio/kannatusilmoitukset-front.git # clone the repository
cd kannatusilmoitukset-front
npm install # install node dependencies (grunt modules)
bower install # install client js dependencies
grunt # run the grunt default task, which generates the actual page

Use grunt watch to build on changes. Testing TODO.