NodeJS

Node GPX to GeoJSON …

In this video we build a simple GPX (GPS Exchange Format) to GeoJSON converter application in NodeJS. I'll walk you through each step of user input, file conversion, and output required to generate GeoJSON files for your next application.

Assigning a Random Port …

Sometimes you want to randomly assign a port to a NodeJS/Express process instead of a hardcoded port. To randomly assign a port in Node simply listen on port '0'. const express = require('express'); const app = express(); // Listen on random port ------ const server = app.listen(0, ()=>{ …

Debugging NodeJS with …

I use NodeJS for a lot of different things. It’s my go to for creating a robust API, simple automation, or any number of tasks. But debugging Node applications can be tricky, tedious, and slow. Applications become littered with console.log()’s everywhere. Chrome’s Developer Tools …