Skip to content

dmodalek/instagram-real-time-map

Repository files navigation

Instagramm Real-time Map

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.

Screenshot

Demo: http://instagram-real-time-map.herokuapp.com

Features

  • Real-Time Instagram API with Socket.io
  • Instagrams Cluster Groups
  • Express 4 Server with Nodemon
  • Heroku Deployment

Installation

Install node modules

$ npm install

Create .env file and set values

$ cp .env-sample .env

Run

Start ngrok

$ ngrok localhost:3000

Start Server

$ npm start

Start Client Asset Building

$ 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

Yeoman Generator

Based on https://github.com/yeoman/generator-backbone

$ yo backbone:router <router>
$ yo backbone:collection <collection>
$ yo backbone:model <model>
$ yo backbone:view <view>

Heroku Deployment

Deploy

Enable Auto-Deploy when pushing to GitHub on Heroku.

Logs

 $ heroku logs --app instagram-real-time-map

About the process

  1. Heroku runs npm install which installs the node modules.
  2. After that, the postinstall from the package.json file hook is called, which installs bower components.
  3. 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

Set the Env vars

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

Ressources

Cats of Instagram

Backbone Module Architecture

Socket.io Docs

Instagram API

Backbone JS with Google Maps

Real Time Example using Istagram and Node

Leaflet Project and Plugins

About

Show Instagram images with a certain #hashtag on a map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published