-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from barriosnahuel/develop
v0.1.0
- Loading branch information
Showing
52 changed files
with
853 additions
and
190 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#𝜋seis [![Build Status](https://travis-ci.org/barriosnahuel/piseis.png)](https://travis-ci.org/barriosnahuel/piseis) | ||
#𝜋seis | ||
|
||
𝜋Seis: People Says, *what people around the world is saying about something... you've got it.* | ||
|
||
##Status | ||
[![Build Status](https://travis-ci.org/barriosnahuel/piseis.png)](https://travis-ci.org/barriosnahuel/piseis) [![Codacy Badge](https://www.codacy.com/project/badge/11a82020ea5f4afabe12dad4ec51bd6a)](https://www.codacy.com/app/app38278410/piseis) | ||
|
||
##Issues | ||
|
||
[![Stories ready to be worked on](https://badge.waffle.io/barriosnahuel/piseis.png?label=ready&title=Ready)](https://waffle.io/barriosnahuel/piseis) [![Stories in progress](https://badge.waffle.io/barriosnahuel/piseis.png?label=in progress&title=In Progress)](https://waffle.io/barriosnahuel/piseis) | ||
|
@@ -55,17 +58,17 @@ There is a demo where you can see both the jQuery plugin and the server in actio | |
##License | ||
|
||
PiSeis - What people around the world is saying, you've got it. | ||
Copyright (C) 2013 Nahuel Barrios <[email protected]>. | ||
Copyright (C) 2013 Nahuel Barrios <[email protected]>. | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
/* | ||
* PiSeis - What people around the world is saying, you've got it. | ||
* Copyright (C) 2013 Nahuel Barrios <[email protected]>. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
.container { | ||
background-color: #AEBDCC; | ||
border-radius: 10px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
/* | ||
* PiSeis - What people around the world is saying, you've got it. | ||
* Copyright (C) 2013 Nahuel Barrios <[email protected]>. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* Created by Nahuel Barrios <[email protected]>. | ||
* Created on 11/5/13, at 12:49 AM. | ||
|
@@ -11,4 +29,4 @@ org.nbempire.js.piseis.find({ | |
$.piseis({ | ||
query: "something cool", | ||
excludeNetworks: ['Facebook', 'Vimeo'] | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,6 @@ org.nbempire.js.piseis.news = (function () { | |
|
||
return { | ||
findByQuery: findByQuery | ||
} | ||
}; | ||
}()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
/* | ||
* PiSeis - What people around the world is saying, you've got it. | ||
* Copyright (C) 2013 Nahuel Barrios <[email protected]>. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
module.exports = function (grunt) { | ||
|
||
// Project configuration. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,100 @@ | ||
/* | ||
* PiSeis - What people around the world is saying, you've got it. | ||
* Copyright (C) 2013 Nahuel Barrios <[email protected]>. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
var express = require('express'); | ||
var path = require('path'); | ||
var favicon = require('serve-favicon'); | ||
//var favicon = require('serve-favicon'); | ||
var logger = require('morgan'); | ||
var cookieParser = require('cookie-parser'); | ||
var bodyParser = require('body-parser'); | ||
|
||
var defaultConfig = require('./development.json'); | ||
|
||
var routes = require('./routes/index'); | ||
var networks = require('./routes/networks'); | ||
var news = require('./routes/news'); | ||
|
||
var app = express(); | ||
|
||
var environment = app.get('env'); | ||
console.log('Running server in "%s" mode', environment); | ||
|
||
// View engine setup | ||
app.set('views', path.join(__dirname, 'views')); | ||
app.set('view engine', 'jade'); | ||
|
||
// Uncomment after placing your favicon in /public | ||
// TODO: Uncomment after placing your favicon in /public | ||
//app.use(favicon(__dirname + '/public/favicon.ico')); | ||
app.use(logger('dev')); | ||
app.use(logger(process.env.REQUEST_LOG_MODE || defaultConfig.requestLogMode || 'dev')); | ||
app.use(bodyParser.json()); | ||
app.use(bodyParser.urlencoded({extended: false})); | ||
app.use(cookieParser()); | ||
app.use(express.static(path.join(__dirname, 'public'))); | ||
|
||
app.use('/static', express.static(path.join(__dirname, 'public'))); | ||
app.use('/demo', express.static(path.resolve('../demo'))); | ||
app.use('/jquery-plugin', express.static(path.resolve('../jquery-plugin'))); | ||
|
||
//=============== | ||
// Main resources mappings. | ||
app.use('/', routes); | ||
app.use('/networks', networks); | ||
app.use('/news', news); | ||
|
||
// Catch 404 and forward to error handler | ||
//=============== | ||
// Error handlers | ||
|
||
/** | ||
* Catch 404 and forward to error handler | ||
*/ | ||
app.use(function (req, res, next) { | ||
var err = new Error('Wow! Check the URL because we currently does NOT support that resource.'); | ||
err.status = 404; | ||
next(err); | ||
}); | ||
|
||
//=============== | ||
// Error handlers | ||
|
||
// Development error handler, it will print stacktrace | ||
if (app.get('env') === 'development') { | ||
if ('development' === environment) { | ||
app.use(function (err, req, res, next) { | ||
// Development error handler, it will print stacktrace | ||
|
||
res.status(err.status || 500); | ||
res.render('error', { | ||
message: err.message, | ||
error: err | ||
}); | ||
}); | ||
} | ||
|
||
// Production error handler, no stacktraces leaked to user | ||
app.use(function (err, req, res, next) { | ||
res.status(err.status || 500); | ||
res.render('error', { | ||
message: err.message, | ||
error: {} | ||
} else { | ||
// 'production' environment | ||
app.use(function (err, req, res, next) { | ||
res.status(err.status || 500); | ||
res.render('error', { | ||
message: err.message, | ||
error: {} | ||
}); | ||
}); | ||
}); | ||
|
||
if (process.env.ROLLBAR_ACCESS_TOKEN) { | ||
var rollbar = require('rollbar'); | ||
rollbar.handleUncaughtExceptions(process.env.ROLLBAR_ACCESS_TOKEN); | ||
app.use(rollbar.errorHandler()); | ||
console.log('Rollbar configured successfully'); | ||
} else { | ||
console.error('Running %s mode without ROLLBAR_ACCESS_TOKEN environment variable', environment); | ||
} | ||
} | ||
|
||
module.exports = app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"apiEndpoint": "http://piseis.herokuapp.com", | ||
"requestLogMode": "dev", | ||
"networks": { | ||
"instagram": { | ||
"clientId": "cb1d643d638842518c90b63c6c3ea7a0" | ||
}, | ||
"googleplus": { | ||
"apiKey": "AIzaSyCNQ1slAxWLz8pg6MCPXJDVdeozgQBYxz8" | ||
}, | ||
"twitter": { | ||
"consumerKey": "oy1KRFv0w7vnJgYV9MnzQ", | ||
"consumerSecret": "p5DOWK5W8PfPSGEjufFR0MI2U2896aDM5mbiYFGLQ", | ||
"accessToken": "167430903-S92M9ardfhRFAM4pdAUrNA3TC1mlA91QtzyLgBET", | ||
"accessTokenSecret": "9FUA6zwicRQjK2fjvHMaRHVKiBUzEm7vNU5dAa97cQ9st" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
server/public/libraries/bootstrap-3.3.5/css/bootstrap-theme.css.map
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
server/public/libraries/bootstrap-3.3.5/css/bootstrap-theme.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
server/public/libraries/bootstrap-3.3.5/css/bootstrap.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+19.7 KB
server/public/libraries/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
Oops, something went wrong.