mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 02:44:01 +00:00
Added licenses, cleanup
This commit is contained in:
parent
d1675006dd
commit
97b004bba9
@ -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']);
|
||||
});
|
||||
|
@ -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"
|
||||
}
|
||||
|
13
readme.md
13
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
|
||||
|
||||
|
11
src/app.js
11
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.');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user