Tom Spencer
  • about
  • blog
  • hire me
  • It's 2020: let's build a node.js app with TypeScript

    MAY 22, 2020 — JAVASCRIPT, NODEJS, TYPESCRIPT

    It's 2020. You want to build a node.js app, and you've heard great things about TypeScript. Let this post act as your guide through the forest of compilers and specifications as you navigate to the promised land: a strongly-typed node.js codebase.


  • Adding click-to-copy buttons to a Hugo powered blog

    SEP 14, 2018 — JAVASCRIPT

    Writing code snippets in Hugo is simple and elegant, using a combination of markdown code fences and Hugo's support for syntax highlighting. Recently I've been looking to add a button to automatically copy a code snippet to the clipboard, and I've documented my solution in this post.


  • Running a node.js app in a low-memory environment

    OCT 1, 2016 — HEROKU, JAVASCRIPT, NODEJS

    Running a node.js app in a low-memory environment requires some additional work to ensure that the v8 garbage collector is aware of the memory ceiling. This post outlines an approach to achieve this.


  • Creating a demo page for your npm module

    DEC 17, 2015 — JAVASCRIPT, NODEJS, NPM

    So, you've created a super-awesome npm module, and you want to share it with the world. How do you create a demo page?


  • Setting up a Docker-based MEAN development environment

    JUL 25, 2015 — DOCKER, JAVASCRIPT, MONGODB, NODE

    A workflow for using Docker to separate your development environment for each project.


  • An Alternative to npm Private Modules

    MAY 20, 2015 — JAVASCRIPT, NODE

    In this article, I'm going to show you how you can replicate npm private hosting using GitHub or Bitbucket, and access these modules from your deployment server and/or Heroku.


  • Short ID Generation in JavaScript

    NOV 16, 2014 — JAVASCRIPT

    A 'short' or 'hash' ID is a seemingly random sets of characters, popularised by services which need unique but readable (and typeable) URLs.


  • Angular Boilerplate

    MAY 15, 2014 — JAVASCRIPT, TOOLING

    It's important in this era of web application development to have a strong toolset at your disposal. Growing complexity with 'fat' client apps can lead to a maintenance nightmare if not properly planned and thought out.


  • Mongoose Validations

    APR 23, 2014 — BACK-END, DATABASES, JAVASCRIPT, MONGODB, MONGOOSE

    Some thoughts on validating data according to a Mongoose Schema.


  • Learning Angular

    APR 7, 2014 — ANGULARJS, FRONT-END, JAVASCRIPT

    The last week has been an intense period of training. I've taken up the offer of a project to be built using AngularJS, and so my head has been down in tutorials, books and online docs. Here are some of the resources I found useful.


  • Becoming Angular

    MAR 31, 2014 — ANGULARJS, FRONT-END, JAVASCRIPT

    During my time at Mubaloo I was a vocal supporter of Backbone.js. But recently there has been lots of noise around AngularJS.


home


© 2021. Tom Spencer. Some Rights Reserved.
Powered by Hugo & Goa.