0.0.2 • Published 4 years ago
meyern4-node-chat v0.0.2
Node.js example chat server
To run example do:
- Install node.js
- Create new directory for app
- Place index.html, server.js and package.json in directory
- In command line go to directory then: npm install
- In command line do: node server
- 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.