Show Instagrams of a certain #Hashtag on a Map, using the Instagramm Real-time API, Node.js with an Express Server and Backbone JS in the Frontend.
Demo: http://instagram-real-time-map.herokuapp.com
- Real-Time Instagram API with Socket.io
- Instagrams Cluster Groups
- Express 4 Server with Nodemon
- Heroku Deployment
Install node modules
$ npm install
Create .env file and set values
$ cp .env-sample .env
$ ngrok localhost:3000
$ npm start
$ grunt start
Then, update the URLs in the .env file and in online in the Instagramm Client Manager with the public URL provided by ngrok i.e. http://19f17d32.ngrok.com
Instagram Client Manager: https://instagram.com/developer/clients/manage
Open your Browser at http://localhost:3000
Based on https://github.com/yeoman/generator-backbone
$ yo backbone:router <router>
$ yo backbone:collection <collection>
$ yo backbone:model <model>
$ yo backbone:view <view>
Enable Auto-Deploy when pushing to GitHub on Heroku.
$ heroku logs --app instagram-real-time-map
- Heroku runs npm install which installs the node modules.
- After that, the postinstall from the package.json file hook is called, which installs bower components.
- A custom Heroku Build Pack is run in order to run Grunt
Heroku installs Grunt CLI als local module. Therefore we have to call Grunt with a relative path, see package.json
Create and set the same Env variables that are in your local .env file. Plus, add the following Env var:
BUILDPACK_URL: https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt.git
Cats of Instagram
Backbone Module Architecture
Socket.io Docs
Instagram API
Backbone JS with Google Maps
Real Time Example using Istagram and Node
- http://www.bymichaellancaster.com/blog/how-i-built-lollagram-lollapalooza-instagram-real-time-api/
- https://github.com/weblancaster/instagram-real-time
Leaflet Project and Plugins
- Leaflet: http://leafletjs.com/
- Cluster Plugin: https://github.com/Leaflet/Leaflet.markercluster
- Instagram and Cluster Plugin: http://blog.thematicmapping.org/2014/06/showing-instagram-photos-and-videos-on.html