Monthly Archives: September 2016

How to Deploy a Node.js App to Heroku

Below you’ll find the basic steps to deploy a Node.js (should apply to other languages and frameworks as well) on Heroku. It assumes you have Git and Heroku toolbelt installed. You can view a more detailed tutorial here. 1. Create the app locally (you can view a “Hello World” example here) 2. git init 3. […]

Git Basic Commands

Git is one of the most popular version control systems out there. Below you’ll find the basic commands you need to get started with it. Note: One important aspect to understand about Git is that it thinks about data as snapshots of files over time. Every commit will generate a new snapshot, that is independent […]

Facebook Webhook Integration Code in PHP

Many types of applications that interact with Facebook will need to use webhooks. Messenger chat bots are an example. If you follow Facebook’s setup guide, you’ll notice that the example provided to activate a webhook for the first time is in Node.js:   app.get('/webhook', function (req, res) {     if (req.query['hub.verify_token'] === 'YOUR_VERIFY_TOKEN') {       res.send(req.query['hub.challenge']);     } else […]