Skip to content

kleinbs/chat-app

Repository files navigation

Chat App

This project is just me messing around. I created a chat app using:

Client:

  1. React
  2. Webpack
  3. Material Ui
  4. Websocket.io client

Server:

  1. Node
  2. Express
  3. Websocket.io

Setting up and Running the app

Development

# To install all the app dependencies
npm i
# to start the server
npm run start:server
# to start the client
npm run start:client

Docker

Install Docker https://docs.docker.com/engine/install/

npm run start:app

About this app

Q: How secure is this app?

A: Not at all, When a user registers, the app writes a cookie with the username and a cookie with a userID guid which is being used as the users "credentials". If is lost, the userId is lost, the account will become orphaned. If another actor gets ahold of someone's userID and userName, they can easily get logged in as that user.


Q: Why use material ui?

A: It made building this app very quickly, and didn't want to get hung up on styling


Q: How is data saved?

A: Just in memory. When the app goes down, all messages and users are lost. in the future I may change this

About

Node/React chat app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors