Added licenses, cleanup

This commit is contained in:
Dan Seripap 2016-01-19 12:35:47 -05:00
parent d1675006dd
commit 97b004bba9
5 changed files with 7 additions and 23 deletions

0
LICENSE Normal file
View File

View File

@ -6,8 +6,6 @@ var babel = require('babelify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
// var bundler =
gulp.task('watch', function() {
gulp.watch('src/js/main.js', ['build']);
});

View File

@ -1,5 +1,5 @@
{
"name": "fattychat",
"name": "darkwire",
"version": "1.0.0",
"description": "",
"main": "index.js",
@ -33,5 +33,5 @@
"jsbuild": "uglifyjs src/js/main.js --compress --mangle -o src/public/main.js"
},
"author": "Daniel Seripap",
"license": "ISC"
"license": "MIT"
}

View File

@ -1,19 +1,14 @@
# FattyChat
# DarkWire.io
FattyChat is the simplest way to chat online anonymously.
Encrypted, anonymous web chat. Powered by socket.io.
### Installation
Install dependencies
npm install
You need Gulp installed globally:
npm install -g gulp
npm install
gulp start
FattyChat is now running on `http://localhost:3000`
Darkwire is now running on `http://localhost:3000`
### Deployment

View File

@ -1,4 +1,3 @@
// System
import express from 'express';
import mustacheExpress from 'mustache-express';
import session from 'express-session';
@ -40,8 +39,6 @@ app.set('views', __dirname + '/views');
app.use(sessionMiddleware);
app.use(express.static(__dirname + '/public'));
// Routes
function generateNewRoom(req, res, id) {
const room = new Room(io, id);
rooms.push(room);
@ -59,10 +56,6 @@ app.get('/', (req, res) => {
generateNewRoom(req, res, id);
});
app.get('/loaderio-6f94612a3fa71ff98b23eecfcca2de6c.html', (req, res) => {
res.send('loaderio-6f94612a3fa71ff98b23eecfcca2de6c');
});
app.get('/:roomId', (req, res) => {
const roomId = req.params.roomId || false;
@ -75,8 +68,6 @@ app.get('/:roomId', (req, res) => {
return res.redirect('/');
});
// Events
server.listen(3000, () => {
console.log('fatty is on.');
console.log('darkwire is online.');
});