Skip to content

A Bigfoot sighting data analysis built using Google Maps API and Chart.js.

Notifications You must be signed in to change notification settings

kita85/bigfoot-sighting-analysis

Repository files navigation

Bigfoot Sighting Analysis

This application computes the probability that you will encounter a bigfoot at a particular lat / lng. The sighting data used to generate the map and charts are real, however the probability calculation is up for debate. It is calculated by doing some arbitrary math with random chance (chances of winning the lottery), proximity, and area sightings. Charts and tables are provided to help aid your search and determine optimal season, moon phase, and so forth. If you encounter a bigfoot by using this application. I cannot accept responsibility for potential injury. Please use at your own risk.

This code can easily be adapted to a real world scenario. By adding real estate data, you could create a heat map for "No Vacancy" properties in a particular area. Thus discovering the optimal locations to purchase a vacation rental.

This sample demonstrates:

  • Use of Ajax and PHP for server communication
  • API implementation
  • Use of Flex/Responsvie Css
  • Use of JavaScript functions
  • Input and output operations
  • Use of Jasmine for Unit testing
  • Use of Git for version control
  • Use of JSDoc for documentation

Prerequisites

Google API Key

Instructions on how to obtain your own API key visit this tutorial.

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"async defer></script>

Docker

In order to run this container you'll need docker installed.

Installing

In effot to keep the repository clean, docker files have been moved to their own folder. Clone the repo and navigate to the docker directory inside your favorite terminal.

Build the container

docker-compose build

Start the container in the background

docker-compose up -d

Import the database

docker exec -i 5.7-mysql mysql -uroot -pP@55w0rd bigfoot < bfro_reports_geocoded.sql

NOTE: Login credentials can be changed in inc/conn.php and docker/docker-compose.yml

View the site

Mac/Linux

Site now available at localhost

Windows

Find Windows www port by using

docker container ls

Find Windows Port

Site now available at localhost:[winport]

Troubleshooting:

Map not working? Make sure to include your Google Map API key in index.html

Testing

Tests can be executed by browsing to /spec/specrunner.html

project
│   README.md
│   ...    
│
└──spec
   │   index.spec.js			//unit tests
   │   specrunner.html			//page displaying tests
   │
   └───fixtures
   │   │   index.html			//fixed enviroment in which test are run
   │
   │
   └─── ...

Documentation

Documentation can be generated using

docker exec -it 7.2.x-www npm run jsdoc

Built With

Authors

  • Kita Cranfill - Development - GitHub

Acknowledgments

  • Thanks Timothy Renner for providing the Bigfoot Sighting data.

About

A Bigfoot sighting data analysis built using Google Maps API and Chart.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published