Skip to content

An open source survey with built in speed test for the advancement of broadband expansion in unserved and underserved areas.

License

Notifications You must be signed in to change notification settings

gcgov/speedtestsurvey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speed Test Survey

A data collection tool built by Garrett County Government for the advancement of broadband expansion in unserved and underserved areas.

Requirements

Set up instructions

  • After cloning or extracting the project, run composer install to install the project dependencies. (More about Composer, a PHP package manager here https://getcomposer.org/)
  • Set up a web server with PHP. The public root should point to /www/. Once you are able to successfully load index.php, you will have to configure the front end and the backend
  • Edit /www/script/config.js
    • Set ipifyApiKey to the API key you received from https://geo.ipify.org/
    • Set speedTestUrl to use the correct host name for your install. (ie. http://www.garrettcounty.org/test/)
  • At this point you should be able to demo the survey successfully! To save your results, continue to the next steps.
  • Edit /app/config.php
    • Set your MongoDB parameters to match the Mongo install you will use. If you use the database implementation tool below, you will only need to set the password property in this file.
      • For ease of implementation, you can use the script in /app/db/1-createuser.js to create a new Mongo database and user. Before running that Mongo script, set your administrative username and password on line 3 and set a new password for your survey database on line 10. To run that script, in your console, change directory into the db folder and then enter the following command mongo 1-createuser.js. This will create the survey database and add a user that only has access to that database.
  • At this point you should be able to demo the survey and successfully save your results. To geocode the addresses saved in your database, continue.
  • Edit /app/config.php
  • Edit /app/geocode.bat
    • Change the PHP executable path and the file path to match your server.
    • Running this script will update your documents in Mongo DB with a latitude and longitude

Exporting data

  • Script /app/db/export-data-to-csv.bat can be used to dump to the data to a spreadsheet format
  • Mongo DB Charts is a powerful tool that can provide heat mappping and analysis Mongo charts

About

An open source survey with built in speed test for the advancement of broadband expansion in unserved and underserved areas.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published