From 97b004bba9bff2d75fce941711cd7cd9efdd1796 Mon Sep 17 00:00:00 2001 From: Dan Seripap Date: Tue, 19 Jan 2016 12:35:47 -0500 Subject: [PATCH] Added licenses, cleanup --- LICENSE | 0 gulpfile.js | 2 -- package.json | 4 ++-- readme.md | 13 ++++--------- src/app.js | 11 +---------- 5 files changed, 7 insertions(+), 23 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e69de29 diff --git a/gulpfile.js b/gulpfile.js index e61ed9a..bc32907 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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']); }); diff --git a/package.json b/package.json index fe5f548..af5f7c4 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/readme.md b/readme.md index 60d6f0a..73bf468 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/src/app.js b/src/app.js index ba91415..f006755 100644 --- a/src/app.js +++ b/src/app.js @@ -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.'); });