A Node.js, ExpressJS and AngularJS responsive webapp which generates a real-time heatmap of the most recent 1000 Irish tweets on a google map in real time. This is a node.js application that uses twitter public stream api with a filter criteria.
Click here to see it in action!
-
Client Side:
-
Server Side:
-
Development & Deployment:
-
Test:
You need to install Node.js and then the development tools. Node.js comes with a package manager called npm for installing NodeJS applications and libraries.
-
Install node.js (requires node.js version >= 0.8.0)
-
Install Grunt as global npm modules (requires node.js version >= 0.8.0):
npm install -g grunt-cli
-
Install Bower as global npm modules (requires node.js version >= 0.8.0):
npm install -g bower
Run the following commands to download TweetMap app:
git clone https://github.com/martinmicunda/tweet-map.git
-
Install local dependencies (navigate to tweet-map directory):
cd tweet-map npm install
Note1: If you are getting error with github try this "git config --global url."https://".insteadOf git://".
Note2: Make sure all 3rd dependencies from package.json and bower.json are isntalled on your local machine.
Go to dev.twitter.com and register an application. A set of keys will be created for you and you have to add them to development.json file.
"twitter": {
"consumerKey": "",
"consumerSecret": "",
"accessTokenKey": "",
"accessTokenSecret": ""
}
-
Run the server (the command will automatically opens web browser)
node app.js
-
Browse to the application at http://localhost:3000
The MIT License (MIT)
Copyright (c) 2013 Martin Micunda
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.