Migrating Cranes A website for presending immigration reports generated with R.

Project migratingcranes preview image
Visit Site ↗ Project Source
Dec 13, 2022-Jan 27, 2023

Summary

My friend Bill wanted a website to publish immigration reports containing data in a format difficult to get elsewhere. He generated the reports using R, but wanted them to be accessible online.

Goals

Get the website up and crawlable by search engines ASAP.

Solution

I created a static site using Handlebars. The first version of the site took 2 days.

I initially used Bootstrap for the styling. However, it was quite heavy for the site’s needs, so I switched to a custom CSS file.

Some features of the site:

The reports are close behind:

To get a 100 score for SEO would require each report page to get a meta tag describing the content.

Learnings

I’m not sure I’d use Handlebars again. I expected it to be more intuitive to use. However, you have to learn its special syntax for doing simple things like iterating over elements. This was fine for listing out the countries initially, but I ended up using plain JS when I added the grouping. I’m sure there’s a way to do it in Handlebars, but now I see why it’s not as popular at it once was. In fact, I’m not sure I’d use any of the other templating languages either.

I also found a bug in how iOS renders tables.


Stack

Languages:
HTML CSS JavaScript
Packages:
Environment:
NPM
Hosting:
← Previous
Hash Gradient
Next →
Ghost Tabs Chrome Extension