Giter Club home page Giter Club logo

node.js-chat's Introduction

Node.js Chat

This application is made with Node.js, Express, Socket.io and Jade. It use Bootstrap from Twitter and the javascript librairie SlimScroll. Thanks to Node.js, the chat can handle a lot of simultaneous connections without lag. To use it, you need Node.js and those 3 modules.

Install the three modules :

- Go to the chat directory and use this command
- npm install [email protected]
- npm install [email protected]
- npm install [email protected]

Customize the installation :

- You can change the app port from the server.js third line.

How to use :

- node server.js
- Go to IP:port from any (recent) navigator to start chatting !

Credits

Creator : [Geekuillaume] (http://geekuillau.me/)

node.js-chat's People

Contributors

bingeboy avatar geekuillaume avatar msherr2012 avatar zitsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node.js-chat's Issues

Not working in my system

I followed all the procedures which is written in document and started server also but on browser the error is coming that 'address does not understood'.

pls help

Issue while deploying

l build for the application failed: Shell command '/sbin/runuser -s /bin/sh 57ba9d1a7628e1e9eb00011a -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c6,c638' /bin/sh -c "gear postreceive --init >> /tmp/initial-build.log 2>&1""' returned an error. rc=255 .Last 10 kB of build output: 4 npm info install [email protected] into /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text npm info install [email protected] into /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text npm info install [email protected] into /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text npm info installOne [email protected] npm info installOne [email protected] npm info installOne [email protected] npm info preinstall [email protected] npm info preinstall [email protected] npm info preinstall [email protected] npm info preinstall [email protected] npm info preinstall [email protected] npm info preinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/longest npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/longest npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/repeat-string npm info linkStuff [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/repeat-string npm info linkStuff [email protected] npm info linkStuff [email protected] npm info install [email protected] npm info linkStuff [email protected] npm info postinstall [email protected] npm info attempt registry request try #1 at 02:36:50 npm http request GET https://registry.npmjs.org/is-buffer npm info install [email protected] npm info postinstall [email protected] npm info install [email protected] npm info postinstall [email protected] npm info install [email protected] npm info postinstall [email protected] npm info preinstall [email protected] npm http 200 https://registry.npmjs.org/is-buffer npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/source-map npm info retry fetch attempt 1 at 02:36:50 npm info attempt registry request try #1 at 02:36:50 npm http fetch GET https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.4.tgz npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm http fetch 200 https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.4.tgz npm info install [email protected] into /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/kind-of npm info installOne [email protected] npm info install [email protected] into /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/kind-of npm info installOne [email protected] npm info preinstall [email protected] npm info preinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/kind-of/node_modules/is-buffer npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/kind-of/node_modules/is-buffer npm info linkStuff [email protected] npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info install [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/kind-of npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/kind-of npm info linkStuff [email protected] npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info install [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text npm info linkStuff [email protected] npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info install [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align npm info linkStuff [email protected] npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info install [email protected] npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js/node_modules/yargs npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade/node_modules/uglify-js npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo/node_modules/jade npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info build /var/lib/openshift/57ba9d1a7628e1e9eb00011a/app-root/runtime/repo npm info linkStuff chat@ npm info install chat@ npm info postinstall chat@ npm info prepublish chat@ [email protected] node_modules/express ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/socket.io ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/jade ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) npm info ok Preparing build for deployment Deployment id is 64d69fb8 Activating deployment Starting NodeJS cartridge Mon Aug 22 2016 02:37:00 GMT-0400 (EDT): Starting application 'nodejs' ... Waiting for application port (8080) become available ... Application 'nodejs' failed to start (port 8080 not available) ------------------------- Git Post-Receive Result: failure Activation status: failure Activation failed for the following gears: 57ba9d1a7628e1e9eb00011a (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/57ba9d1a7628e1e9eb00011a/nodejs #IO:0x00000000c962b0 #IO:0x00000000c96238 ) Deployment completed with status: failure postreceive failed

Problems with the following: step property, webkit property, c.stop, c.fadeOut

The image below contains all I know about the four problems from what the browser tells me. When I researched the first one, someone said that jQuery Slim removes some functions required by jQuery UI and that a full version of jQuery needs to be utilized. When researching the second problem it seems to be a jQuery version issue. The last two I am not sure about as it deals with lines 16 and 17 in the code.

Any help you could provide in fixing these issues would be fantastic. And thank you for posting this Chat Room example I find I have a better understanding of how I would use Node.js, and the other modules to do this.

chatroomproblems

has no method 'set'

When you enter a name and submit the form you see:

[root@dev nodejs]# node server.js
Server listening on port 80
Warning: missing space before text for line 52 of jade file "/home/nodejs/views/home.jade"
Warning: missing space before text for line 54 of jade file "/home/nodejs/views/home.jade"
Warning: missing space before text for line 59 of jade file "/home/nodejs/views/home.jade"
Warning: missing space before text for line 66 of jade file "/home/nodejs/views/home.jade"
Warning: missing space before text for line 67 of jade file "/home/nodejs/views/home.jade"

/home/nodejs/server.js:56
socket.set('pseudo', data, function(){
^
TypeError: Object # has no method 'set'
at Socket. (/home/nodejs/server.js:56:11)
at Socket.emit (events.js:95:17)
at Socket.onevent (/home/nodejs/node_modules/socket.io/lib/socket.js:326:8)
at Socket.onpacket (/home/nodejs/node_modules/socket.io/lib/socket.js:286:12)
at Client.ondecoded (/home/nodejs/node_modules/socket.io/lib/client.js:181:14)
at Decoder.Emitter.emit (/home/nodejs/node_modules/socket.io/node_modules/socket.io-parser/node_modules/emitter/index.js:132:20)
at Decoder.add (/home/nodejs/node_modules/socket.io/node_modules/socket.io-parser/index.js:233:12)
at Client.ondata (/home/nodejs/node_modules/socket.io/lib/client.js:166:16)
at Socket.emit (events.js:95:17)
at Socket.onPacket (/home/nodejs/node_modules/socket.io/node_modules/engine.io/lib/socket.js:96:14)

respond my request!

how the contents of the message are all stored in the database and display again without typing the message again when the browser refreshes? I need the tutorial...

Express version 4 does not support function "configure"

Getting this error:

app.configure(function() {
^
TypeError: Object function (req, res, next) {
app.handle(req, res, next);
} has no method 'configure'

This is because Express version 4 does not support "configure" function: http://stackoverflow.com/questions/22202232/express-has-no-method-configure-error

However package.json has hard-coded express dependency:
"express": "*"
which is causing express version 4 to download. Express version 3 works fine!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.