Skip to content
/ poc-mean Public
forked from cleondz/poc-mean

NodeJs + Express + Twitter API + Socket.io

Notifications You must be signed in to change notification settings

XinV/poc-mean

 
 

Repository files navigation

MEAN + SOCKET.io (www.mean.io y socket.io)

Instructions

Clone the repository

git clone [email protected]:cleondz/poc-mean.git

Prerequisitos

  • 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

Tools Prerequisites

  • 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

Optional

  • Grunt - Download and Install Grunt.

Quick Install

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

About

NodeJs + Express + Twitter API + Socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published