Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
db
 
 
lib
 
 
www
 
 
 
 
 
 

BES Map Drawing Component

This project handles respondent map drawing for the BES. (Created by Mark Fredrickson)

Requirements:

  • PHP (5.3 or newer) SQLite3

After pulling the repository, build the database:

$ cd db
$ make

Back in the main repository, you can start a webserver with:

$ php -S localhost:8000 -c php.ini -t www

This will start a webserver on your machine on port 8000. Navigate to http://localhost:8000/drawing to create a map.

URLs

  • /drawing creates a new map. Optional query string parameters: -- visa is the YouGov id sent from their servers -- postcode allows pre-specifying the address or postcode -- Example http://localhost:8000/drawing?visa=239393&postcode=SW1A 2AA.
  • /drawing/all lists all drawings in the system with links to individual pages

About

Code for use in collecting hand-drawn maps in the CCES and BES

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published