0.0.2 • Published 4 years ago

meyern4-node-chat v0.0.2

Weekly downloads
5
License
UNLICENSED
Repository
-
Last release
4 years ago

Node.js example chat server

To run example do:

  1. Install node.js
  2. Create new directory for app
  3. Place index.html, server.js and package.json in directory
  4. In command line go to directory then: npm install
  5. In command line do: node server
  6. In browser go to localhost:3000

Connect to the node-chat database, in the messages collection User: node-chat-client Pass: RGmY3hFiAc1jQFTi

Work Log

  • meyern4.
  • nickchan99.
    • Used random-picture package from npm to generate a random image when a chat user types 'random-pic'.
    • Altered html to not log the message to the screen when sending it. The server receives it and echoes it back to the client to confirm it was received.
    • Message is echoed back to client since generating the image requires a server response, the client cannot generate the random image.
    • Changed jQuery appending in the html file to accept html. This formats the server-generated image string and displays it on the screen.
  • amednikova1.
  • rupakstephen.
0.0.2

4 years ago

0.0.1

4 years ago