MEAN + SOCKET.io (www.mean.io y socket.io)
Clone the repository
git clone [email protected]:cleondz/poc-mean.git
- Node.js - Download and Install Node.js. You can also follow this gist for a quick and easy way to install Node.js and npm
- NPM - Node.js package manager, should be installed when you install node.js.
- Bower - Web package manager, installing Bower is simple when you have npm:
$ npm install -g bower
- Grunt - Download and Install Grunt.
The quickest way to get started with MEAN is to clone the project and utilize it like this:
Install dependencies:
$ npm install
Set Twitter API consumer/access keys:
$ vi app/controllers/twitter.js
var twit = new twitter({
consumer_key: 'consumer_key',
consumer_secret: 'consumer_secret',
access_token_key: 'access_token_key',
access_token_secret: 'access_token_secret'
});
FIX ntwitter
$vi node_nodules/ntwitter/lib/keys.js
search_base: 'https://search.twitter.com', // replace by :
search_base: 'https://api.twitter.com/1.1/search',
$vi node_modules/ntwitter/lib/twitter.js
// line 166
var url = this.options.search_base + '/search.json'; // replace by
var url = this.options.search_base + '/tweets.json';
We recommend using Grunt to start the server:
$ grunt
Then open a browser and go to:
https://localhost:3000