isaacsu / twich Goto Github PK
View Code? Open in Web Editor NEWnode.js + php realtime browser-based chat app supporting multiple rooms. Based on ry/node_chat.
Home Page: http://forum.twich.me/
License: GNU General Public License v2.0
node.js + php realtime browser-based chat app supporting multiple rooms. Based on ry/node_chat.
Home Page: http://forum.twich.me/
License: GNU General Public License v2.0
Twich web-based chat (http://twich.me/) by Isaac Su ([email protected], @isaacsu) based on http://github.com/ry/node_chat For discussions and support please visit http://forum.twich.me/ Please drop me a line when you've got a site running. I would love to hear of twich servers running in the wild. Installation ------------ www/ This are a set of php scripts that serve up the client files and organize the rooms. 1. Create a vhost in Apache and point it to this folder. You will require mod_rewrite for it to function properly. 2. Copy www/_config.php.sample to www/_config.php and enter your own configuration settings. These help to customize the javascript files that are served to the client. var $port = 443; // Port that node server is listening on var $domain = ''; //domain name of node server var $analyticsAccount = ''; // Google Analytics account var $analyticsDomainName = ''; // Google Analytics domain name 3. Edit .htaccess and put your own domain name in instead of twich.me 4. www/ is all set up. node/ This is the actual node server. 1. Configuration is in config.js. The only one you should be worrying about is port:443. This has to match $port in _config.php. 2. Start the node server by typing: node server.js
there is existing oEmbed code that has been if (0) 'ed off because of some auto url exploits. Would be nice to revisit the feature and get it working again.
need to clean up www/tw folder. maybe drop to scratch folder.
Just a heads up, the GPL license isnt valid on all files because you have not added the
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
one line to give the program's name and an idea of what it does.
Copyright (C) yyyy name of author
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 2
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, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
type `show w'. This is free software, and you are welcome
to redistribute it under certain conditions; type `show c'
for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright
interest in the program `Gnomovision'
(which makes passes at compilers) written
by James Hacker.
signature of Ty Coon, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License.
From http://www.gnu.org/licenses/gpl-2.0.html
But the problem is that you cant change it as far as I know because you already distributed the software without any kind of copyright notice. So, youre screwed.
"i didn't know where to type, there's no visible form field here, it's black like the rest of the page and i didn't see the blinking cursor because it didn;t appear until later"
currently it's got twich.me baked in. need to take it out.
Need to make a list of dependencies in the README file to get twich running.
twich should make a notification sound when a new activity happens, especially when chat is unfocused.
abraham it would be nice if the input field would auto focus when coming back to the tab.
mochidino i'm chinese and wouldn't it be nicer that nickname can contain letters other than letters and numbers.
Would be great if it saved logs from previous chats, maybe to mysql or even yaml.
$_GET variables coming through need to be escaped, but it needs to be in the context of a slightly broader design discussion. (i.e. what characters are allowed for room names, usernames, etc.)
twich needs proper documentation and installation guide. the README doesn't do a good enough job.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.