-
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.
- Loading branch information
1 parent
f78bed4
commit d972229
Showing
22 changed files
with
1,391 additions
and
128 deletions.
There are no files selected for viewing
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 @@ | ||
web: node app.js |
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,19 @@ | ||
var express = require('express'), | ||
app = express(); | ||
|
||
// This is needed for Dokku: | ||
|
||
var port = process.env.PORT || 8080; | ||
|
||
// Initialize a new socket.io object. It is bound to | ||
// the express app, which allows them to coexist. | ||
|
||
var io = require('socket.io').listen(app.listen(port)); | ||
|
||
// Require the configuration and the routes files, and pass | ||
// the app and io as arguments to the returned functions. | ||
|
||
require('./config')(app, io); | ||
require('./routes')(app, io); | ||
|
||
console.log('Your application is running on http://localhost:' + port); |
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,17 @@ | ||
var express = require('express'); | ||
|
||
module.exports = function(app, io){ | ||
|
||
// Set .html as the default template extension | ||
app.set('view engine', 'html'); | ||
|
||
// Initialize the ejs template engine | ||
app.engine('html', require('ejs').renderFile); | ||
|
||
// Tell express where it can find the templates | ||
app.set('views', __dirname + '/views'); | ||
|
||
// Make the files in the public folder available to the world | ||
app.use(express.static(__dirname + '/public')); | ||
|
||
}; |
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,30 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
Proc-Type: 4,ENCRYPTED | ||
DEK-Info: AES-128-CBC,4AD33A921DB32908BFF69ABE4D646100 | ||
|
||
B6/L/8Y3lOYlv3doaNfy10fphP1/n6ZNk9Ys/cIBhnbI6tzAMNt3M1+KcM/nmKY9 | ||
miGY7F3XUI87Jc6F6EzIMkBw7Pae1zSoj/CCynVtgezxbT2FQJNTPZJ+GsbP1gXH | ||
nbWMTUVcAfLMyw1HPg4oPFI/0btb3AJxxkayqILx0tWAKJRSJz4ZiOijFsJdd15J | ||
5Njw/0EdW0ds7IG++h7zLKt0AaFC3liwaD5HxfUmZrhgsFOQ3d2WTK+pGRox0XDn | ||
oRO4vOETfk6zx+W/91BoM+xtot/FBTt3hStOBsB4xB7P37hHm+0oclS29KD9sxVo | ||
2J9bn5PE2XF40GVycJCLLBWJgDZKroCIoGhgIZnlP3QPrEqYyHbq1SYO2awzWgzm | ||
AAV7dbqxzIXDGtM0x1MjDX33EeHBtu63tlE+uPfxD4jClYaQUb7UWwEW+ASkZveL | ||
EKoDNFGEBwXvdDW67mmjOOk5M+GSybS4RMw3OnHU5KzYEEx5qpfbPqpJoRCyq41w | ||
jlVxoUqCVd2DrS0e74gfgyEL5Apy9Tj8sQ9DHVMEwjmOznFoZY8zu3C7ap91tm/R | ||
XKsoXNmYFbUzT8nSV6tSNfOy3vyNcLP0PdzAWPgiNQ8d99QI3k+UudX1qZvLF8rq | ||
7HS6XHFzXoitAeWegLC0Goif+qYBs6EmjVcF7KFCY08lX4KgZLMbI45X2RBNadhj | ||
liYiJHDVII9nak8kt/lUT/bkGrLUVnQ1wjlQbBbcu73Tx9FXJwMna5v/CDPGDNfS | ||
X5FMeLe8Kop8F8yz0MU9Hn+KS/Gpic3nZeQCVlI/8e4DAunSS0T3Z8pEksh/lFNb | ||
KmkFX+dlmgJ7QnA2/TI/56fmK+bPjXYcuE69OSnSQATHO/5D7s38lDMPVvhuA2E8 | ||
js7tgAHZYZ3//+inUqBAbvnyLkSlCjJ5cWwtX7bJJPZg35XzIowX4nwdYuqTx00/ | ||
iBN6z03YqzoaxXqIpT8Ec2JYkcjYu41j6Z2eXdDAy0Q+BGl0/SdNCYStTTAMHhE5 | ||
iiNpCYChlzYy6a2RlBgqTl9dGAAyobPwC17dLMkAtdJSHrzaqRow7HgCGlMHh/a8 | ||
0HnBGThb+kJga0vB2lbPWqICtZIq8i2mtcuS5rG5NK3vtTSSQnIhIju8FT1Cf9vv | ||
CLz5iZb8ez3G+VCy9N7PqATSzkmy/a7ArzxNkDc8iYrkCtLwSvrwOgRtBxTCNsiM | ||
kMpD0dbpiAvQiL9eMq+FB7TigkonxWVfmq2y/Koy7nK6nc4hLf91uIE5Kipi7mzu | ||
5KuAP/5sjhvMz3eaN3aB3R1ZNToQZKq93LKKTCevZdomyDrOO3+w/w7zsJXsCyOX | ||
5UgCaG4pDbraYWa1T5z+ddhFzoWiHFahocCQiNiwe5aqNA5vHF0oG8r7XExUlG9d | ||
2nP6N4pf04IxFk61gDeu/oDe2dcv8BfOxQIStPMii8s659fzrR3yuHrJrGKlG4Ia | ||
dCqPiLu+Pq0KpgIJzx70g+q6pwGx6ZtconfoUWgPCRNbBnGlq1rVfY5/M9n986+H | ||
AN3jDl7ksUBwDg6Pf8Z8tsXGFyZ6jvXzSIvuFwjb5SwY9NAPzrg+cVh3B8Woww3z | ||
-----END RSA PRIVATE KEY----- |
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 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2+qldoWVHGjPU4vqKdUvlS3VAmPZI9+X0O1uODcc9Vq8efducR82MloqPx67mxt7xkhE2Q+jD0kdsJsE+IHTtspsTyTCPc+x2dVEzUjOiw904FGa9lHEYSE8c2/H1GCKn9Olss2vV4V43aoH9X1O6Lj2cW1avDFXSyEmBbw1BWBaU2TyJW310YG9sgu1+1jnYro1YuGIwN/FsSKLGUf+U3E+YqN3wMRzStwo/svxgOF9qgptD5u86Fc1Nf4gEGXY+AEtDCPpHc84L8CWanUUaW80Cij4a09T6MLowz5qwc/EFIoSd4lD2yNpQptOV6G3CwlpMBScId9BzILxtONmL [email protected] |
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,21 @@ | ||
{ | ||
"name": "WaffleChat", | ||
"version": "0.0.2", | ||
"description": "Real-time chat", | ||
"main": "app.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"waffle", | ||
"chat" | ||
], | ||
"author": "Catlin Buckley", | ||
"license": "MIT", | ||
"dependencies": { | ||
"ejs": "^1.0.0", | ||
"express": "^4.8.2", | ||
"gravatar": "~1.0.6", | ||
"socket.io": "^1.0.6" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.