Web Programming with Python and JavaScript
This is a basic chatroom application that uses Flask and Socket.IO. The Project description can be found here.
clone or download the repository
build the docker contaner
docker build -t flack:latest .
run docker container
docker run -d -p 5000:5000 flack
On webpage load, user is allowed to make a display name that is tied to all their messsages. Display Name is also stored in localStorage, and is recalled on webpage load. If a user returns, they do not need to re-enter a display name. Future implementation would hide form in this case, but currently the submit button is simply deactivated.
Once a display name is created a user is able to create new channels. The "Create Channel" button is disabled until a display name is created.
A list of channels is vieable once a display name is created. This list was created using bootstrap list group.
Once a channel button is clicked, the messages view is displayed and any messages previously sent are displayed as well. The user is also able to send their own messages. If they try to send a message that is more than 100, an error is displayed and user will have to delete messages by using the delete messages button.
Channel is remembered if page is closed and re-opened. All messages are displayed and current user is also remembered.
The personal touch is the ability to delete your own messges.