Coder Social home page Coder Social logo

chatroom's Introduction

chatroom

This is a chatroom application developed with node.js and react.js.

How to run

Setup

  • Install node 12.x.x and the latest yarn
  • Clone the repository

Backend

  • cd into the backend folder and run yarn install to obtain all the dependencies
  • enter yarn start to run the node backend

Frontend

  • cd into the frontend folder and run yarn install to obtain all the dependencies
  • enter yarn start to run the react frontend
  • open a chrome or firefox browser at localhost:3000

Features

  • Each user has a username and color that are persistant across all clients (everyone can see your color if it changes)
  • /nick [USERNAME] command to change your username in the chat
  • /nickcolor [ABC or AABBCC] command to change your username color in the chat (accepts 3 or 6 hex characters)
  • Username and color are saved in cookies that persist after closing the app
  • Chat users are given a private error message if they enter a command incorrectly
  • Automatic scrolling when new messages are entered
  • Old chat messages are stored in memory by the server so everyone has a record of old messages
  • The system announces when users enter or leave the chat

chatroom's People

Contributors

bkduncan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.