All articles tagged as:

tutorials

Hands Off Ghost Deployment

It's been awhile since my last blog entry and one of the reasons for that was my miserable deployment setup. This all started with how I wanted blog set up. The goals were for the entire site to be able to run on any machine I'm using with minimal configuration and setup while also making sure all my content is under version control. Those goals have been achived and all I have to do to get set up on a new machine, whether it's a Windows or Mac machine, is clone the repository, run npm install and then fire it up with node. For public hosting I got everything set up on AWS which worked out n…

Read more »

Leaflet Zip Code Map Part 2

Leaflet Zip Code Map Part 1 In this part of the tutorial we'll be focusing on what you need to do to get a front end set up to serve up the map and consume the wonderful zip code data. In case you missed it, here's what we're going for: HTML The html required on the page is almost as basic as it gets since most stuff is loaded in dynamically. The main pieces are: The map div <div class="control" id="map-loader"></div> The Coloring function dropdown if needed And your script includes of course: I'm using Numeral.js for number formatting on the popup, d3 for the h…

Read more »

Leaflet Zip Code Map Part 1

This is the first part of a two part series about how to set up leaflet maps to show zipcode areas with some extra data coming along for the ride allowing us to color the zip code areas based on demographics or any other reporting data. I did this using an ASP.NET MVC site and Web API with a Sql Server database. A database is required for this approach but there's nothing stopping you from reimplementing this in your backend architecture of choice. Here's what it looks like sans the external controls on the page to change reporting parameters and the coloring function (more on that later).…

Read more »