Skip to content

fraktio/kannatusilmoitukset-front

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 git@github.com: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.

About

Front end for the kannatusilmoitukset.fi citizens' initiative visualizer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published