Travelled to Slovakia 3 weeks back to speak about Angular 2 in Bratislava at the OpenSlava conference. Just a basic overview of Angular 2 vs 1. I dove into what docs I could find, took John Papa’s sample Angular 2 project out for a spin, played with a few language implementations.
The last tech I got to have fun with on my vacation was MongoDB. It’s a NoSQL database, meaning, it doesn’t use theÂ common SQL. It stands for “Not Only SQL”, but they market it to people like me so I call it “No SQL thank god”. Instead, it stores JSON objects which it calls documents. They’re stored as BSON: binary JSON.
Given my recent delusions of grandeur once I got login in Node + deployment of Node working, the world was my oyster, so I dove headlong into Mongo. Once I learned how to navigate to the real documentation, I felt right at home.
I describe why Node matters to me, then go over some code. Feel free to skip to the code.
Today, I wanted to cover what I learned building a sample application. Specifically why Restify over Express, static vs API hosting, some of the basics I didn’t know about REST API’s, CORS, Promises with Bluebird, routes, and my changed attitudes towards API development.
Continue reading “Fun With Node, Restify, and JSON Web Token”