MicroBenz / dataset-election-62-candidates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Election 2562 Candidates

This dataset contains a list of candidates for Thailand's Election 2562, which will be held on March 24, 2562.

The original data is PDFs from The Election Commission of Thailand (ECT).

If you spot mistakes, please do report them here.

Zone & Candidate Browsering Web

This website has two components, first page and zone pages. The first page has a form entering a postcode. We use React for HTML DOM manipulation. On the other hand, zone pages are just static files that are generated accordingly. Please see generate-site.py for more details.

Development

Every change made to those pagaes, located in election62, requires a regeneration. One can use the following command to automatically update the site:

watch -n 10 'python generate-site.py --env dev'

Because the final web will be generated to ./dist, you can run a static web server from the root directory and access it via http://<HOSTNAME>:<POST>/dist. You might encouter cross-origin issues. If that the case, please check deploy_path in generate-site.py.

python -m SimpleHTTPServer

About


Languages

Language:Jupyter Notebook 90.1%Language:HTML 4.2%Language:CSS 3.2%Language:JavaScript 1.5%Language:Python 0.9%Language:Shell 0.1%