Sitemap

And That’s a Map…errr, Wrap!

5 min readOct 22, 2017

--

I know I have been pretty MIA on this platform over the last couple of weeks. After semi-recovering from the flu, I made the decision to buckle down and go full-throttle on the final project for the cohort to make sure it was ready to go by graduation and demo day. Anddddd we made it!

For the final project, I paired with Carolina, another recent TIY grad who was one of the associate instructors for our cohort. We decided to build a web application that allows users to create, customize, and share maps with friends — working title, ‘Mapper’.

Press enter or click to view image in full size
Landing page for app

I’m a huge fan of travel and have been fortunate enough to have been on quite a few trips over the course of my life. One thing that has always frustrated me in planning for travel, though, has come when asking friends for recommendations for places to go. The issue here is that, what you ultimately end up getting back, is a really awesome-sounding LIST of names of the places you should check out while you’re in town. Which, when you think about it, is actually wildly impractical and unhelpful when you’re on the ground in a new area and trying to orient and identify your next adventure stop.

What you really need when you’re on-the-go in a new spot and looking to explore is not just the names of places, but also WHERE those places are in relation to you and a sense of WHAT they are (restaurants, parks, museums, breweries, etc.).

Sure, you can pull up the list on your phone, type the name of the place into the browser, open up Yelp (gotta check out those pics), and then pull up your trusty GoogleMaps to map from where you are. The amount of precious travel-time I’ve spent trying to coordinate unnecessarily complicated logistics using this method is truly too painful to recount. We wanted to create a solution to this cumbersome (albeit, luxurious) problem, and so we made Mapper.

Press enter or click to view image in full size
‘Create a Map’ view

This was an ambitious project to undertake — especially considering that we ended up having only 6 days to complete — and we hit more than a few challenges along the way. In spite of it all, we were able to create something we’re proud of, and something that I think is pretty cool.

Design

Initially, we tried to create the app using React — the relatively new (and currently quite popular) JavaScript library designed for quick and responsive user experience — on the front-end. A few complications quickly emerged with that:

1.) I had never built anything with React, so we would have been slowed down considerably, given that I would be learning as we went — I know learning out of necessity is sometimes the best, stickiest way to grasp and retain new material, but under the time-crunch turned out to not be the most strategic approach.

2.) While Carolina is pretty pro with React, and we both have experience with vanilla JavaScript — helpful in learning React — and Ruby on Rails, neither of us had ever tried using the two in conjunction with one-another (nor had the instruction team). We read multiple tutorials and considered using a few different Ruby gems to help facilitate the combo implementation, but we were still struggling to get some of the functionality that we wanted out of React on our Rails framework — again, another major slow down.

Get Emily Deans’s stories in your inbox

Join Medium for free to get updates from this writer.

Ultimately, the tech stack we decided on was as follows:

  • ERB/Sass (front-end content/templating, and styling)
  • JavaScript (front-end functionality and user interaction)
  • Ruby on Rails (site framework with controller and model set-up)
  • GoogleMaps API and ‘Places’ Library (map content and information)
  • Devise Gem (user authentication)
  • PostgreSQL (database)
Press enter or click to view image in full size
‘Explore Your Maps’ View

Additional Challenges

— GoogleMaps API —
While the documentation Google provided on this was extensive and certainly helpful, there were pieces of the sample code that performed in unanticipated ways, which were undesirable in the context of our app.

For example, the sample code for the customizable marker info window boxes (example provided in the ‘Create a Map’ image above) actually only provides the functionality to save information for one marker at a time. When we tried to input Google’s code into our project, we found that we could go ahead and save customized information in that marker’s info window, but then when we went to click on another marker on the map, the info for the previous marker would appear in that box. Obviously, being able to save and customize info for only one location per map would be wildly unhelpful, so we had to manipulate the code to get the desired functionality.

— Deployment to Heroku —
We also ran into a hiccup while trying to deploy our project to Heroku [more info on that in my previous post]. While our content was displaying in the browser upon deployment, none of the styling was showing up, and — even more problematic — none of the maps were either!

We’re playing around with a few different options to try to address the compilation issues and are also looking into various hosting platforms and options where we won’t run into the same issues making API calls. We’ve also looked into utilizing QuotaGuard — a program add-on that handles API requests so that they don’t originate from Heroku IP addresses. Hope to have a solution with that soon.

Next Steps

Carolina and I are both really excited about this project and are committed to continue building as we move forward (this has the added benefit of providing some structure/accountability and on-going challenges as we forge ahead on the job search front).

Obviously, we want to get this up and deployed ASAP so more folks can start using and sharing their maps! We also have plans for customizable markers, direction functionality, social media integration, and a few other fun features, which we’re working on. Hopefully we’ll be ready to share/show some of those soon… 😏

In the meantime, you can take a look at the source code here.

I’ll have a post up soon about life post-bootcamp, so stay tuned. Happy Sunday, y’all!

Song of the Day: “All My Friends” by LCD Soundsystem

--

--

Emily Deans
Emily Deans

Written by Emily Deans

Washington, D.C.-based web developer. Former cheesemaker/food-systems nerd and current nerd in general.