Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a base branch
Nothing to show
...
Choose a head branch
Nothing to show
Commits on May 04, 2012
Commits on May 05, 2012
Commits on May 25, 2012
Commits on May 26, 2012
Commits on May 27, 2012
Commits on May 28, 2012
Commits on May 31, 2012
Commits on Jun 01, 2012
Showing 2,159 changed files with 3,181 additions and 405,398 deletions.
View
@@ -1 +0,0 @@
-Created @ Sat Aug 13 2011 19:41:23 GMT+0000 (UTC)
View
@@ -1,3 +1,4 @@
+node_modules
.htaccess
*.tmproj
logs/*.log
View
@@ -1,5 +0,0 @@
-Options +FollowSymLinks -Indexes -MultiViews
-<IfModule mod_rewrite.c>
- RewriteEngine on
- RewriteRule ^[/]*(.*)$ http://127.0.0.1:3000/$1 [P]
-</IfModule>
View
@@ -0,0 +1,4 @@
+test:
+ mocha -u tdd
+
+.PHONY: test
View
@@ -6,38 +6,30 @@ FYI, it's pretty hacky for now, but it theoretically works... or at least some f
Installation
------------
-Install some extra node modules:
+Install dependencies:
- $ npm install -g express-mvc-framework
- $ npm install mongodb hook log mkdirp
+ $ npm install
Make a copy of the sample config:
$ cp conf/conf.js.sample conf/conf.js
-Note: If you are using the provided API keys/tokens, you MUST use "local.saturn.io:3000" (set local.saturn.io -> 127.0.0.1 in hosts). If you [set up a new dev app on Twitter](https://dev.twitter.com/apps/), you can set the callback URL et al to anything you want, including localhost, 127.0.0.1, etc.
-
-Run MongoDB.
+Run MongoDB server.
Run the app:
- $ eb
-
-Ignore the sidebar that shows up when you're not logged in. Log in first and then use it.
-
-One important thing is to create the cron job tasks (http://{{domain/ip, port}}/cron/manage) once you log in for the first time:
-
-<table>
- <tr>
- <th>Controller</th><th>Method</th><th>Interval</th>
- </tr>
- <tr>
- <td>AnalysisController</td><td>analyze</td><td>10</td>
- </tr>
- <tr>
- <td>TwitterController</td><td>stream</td><td>10</td>
- </tr>
- <tr>
- <td>TopicController</td><td>analyze_trending</td><td>300</td>
- </tr>
-</table>
+ $ node app.js
+
+View the app in a browser [1]. Navigate to /admin/setup to begin the setup process.
+
+* Step 1: Create a user name and password.
+
+* Step 2: Configure Twitter App keys [2].
+
+* Step 3: Connect your Twitter account.
+
+* Step 4: Navigate to /dashboard and wait a moment to see if any posts appear. (Refreshing may help, but shouldn't be required)
+
+[1] Ignore the sidebar that shows up when you're not logged in. Log in first and then use it.
+
+[2] If you plan to use the provided Twitter API keys/tokens, you MUST use "local.saturn.io:3000" (set local.saturn.io -> 127.0.0.1 in hosts). If you [set up a new dev app on Twitter](https://dev.twitter.com/apps/), you can set the callback URL/domain to anything you want, including localhost, 127.0.0.1, etc.
View
@@ -1,79 +0,0 @@
-/**
-* Module dependencies.
-*/
-var cluster = require('cluster'),
- http = require('http'),
- conf = require('node-config'),
- saturn = require('./lib/saturn.js'),
- cron = require('cron').CronJob;
-
-var app;
-
-/**
-* Initial bootstrapping
-*/
-exports.boot = function(port,path){
-
- conf.initConfig(function(err) {
-
- //Create our express instance
- app = require('./app').boot();
-
- var proc = cluster(app)
- .use(cluster.reload(['lib', __dirname+'/models', __dirname+'/controllers'], { interval: 1000 }))
- .set('working directory', path)
- .set('socket path',path)
- .in('development')
- .set('workers', 4)
- .use(cluster.logger(path + '/logs', 'debug'))
- .use(cluster.debug())
- .use(cluster.pidfiles(path + '/pids'))
- .in('test')
- .set('workers', 2)
- .use(cluster.logger(path + '/logs', 'warning'))
- .use(cluster.pidfiles(path + '/pids'))
- .in('production')
- .set('workers', 4)
- .use(cluster.logger(path + '/logs'))
- .use(cluster.pidfiles(path + '/pids'))
- .in('all')
- .listen(conf.port);
-
- /**/
- if (!proc.isWorker) {
- cron('*/3 * * * * *', function () {
- var cron_controller = require('./controllers/CronController');
- try {
- cron_controller.tick(app);
- } catch (ex) {
- console.log("Something really bad happened... "+ex);
- }
- });
-
- // In 3 seconds, try to launch the twitter stream
- setTimeout(function () {
- var host = "local.saturn.io";
- var port = 3000;
- var client = http.createClient(port, host);
- var url = "/twitter/stream";
- var rand = Math.round(Math.random()*1000);
- var request = client.request("GET", url, {host: host, port: port});
- client.addListener('error', function(error) {
- console.log('ERROR: ' + error.message);
- });
- request.addListener("response", function(response) {
- var body = "";
- response.addListener("data", function(data) {
- body += data;
- });
- response.addListener("end", function() {
- // nothing?
- });
- });
- request.end();
- }, 3000);
- }
- /**/
- }, 'conf');
-};
-
Oops, something went wrong.

No commit comments for this range