Assignment2

Name: 15 MINUTE CHAT APP Objective: A chat application that can be used by a group of Users to communicate between themselves. Each session lasts 15 minutes only and the chat closes after the session expires.

RUN "node index.js" to start the server or this link (https://chatapp15min.herokuapp.com/) to run the heroku app version. LANDING PAGE & USER DATABASE: User inputs a User Name and a Session Name to begin chatting. These information gets saved into a database. Landing Page User Collection

SECOND PAGE: This is what appears after a user signs in. Second Page

CHAT WINDOW: After a user presses the start button, the chat session starts. It will last for 15 minutes. Here's a chat example between two people. Notice the names do not interchange as it is supposed to (this is a flaw). Chat window

SESSION OVER: After 15 minutes expires or if the Stop button is clicked, the chat session expires. Session Over

FATAL FLAWS

USER LIST: Unable to show the user list from the database collection. Can only show it on console. User List (can't show)

CHAT SESSION RECORDS: Unable to record the chat session in collection properly. The session name gets saved but there are errors while saving the messages. Commented out that part of the code but this is what the chat database looked like. Chat Collection (Not really) Console log of the messages is not perfect either. Each Message with the Names get concatenate as a single line as shown in the image. This is only due to my lack of capability. Chat Log (Not really)