GithubHelp home page GithubHelp logo

super-dev-tech / simple-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dzervoudakes/simple-chat

0.0 0.0 0.0 26.27 MB

No frills chat app built with React and Socket.io.

License: MIT License

JavaScript 4.20% TypeScript 93.47% HTML 0.40% SCSS 1.93%

simple-chat's Introduction

Simple Chat

No frills chat app built with React and Socket.io.

client server codecov quality prettier

Premise

A simple, real-time chat UI with a preconfigured list of chatrooms which users can contribute to. Users can also send private messages to each other.

Notes:

  • This is a full rewrite of an older project that had some nasty patterns I wanted to clean up
  • I decided to experiment with react-with-styles and custom components as an alternative to Material (and had a lot of fun doing it)
  • The UI is loosely inspired by Slack
  • WebSockets are awesome

demo

Technologies Used

  • Frontend: React, TypeScript, Socket.io-client, CSS-in-JS theming
  • Backend: Node + Express, OvernightJS, Mongoose, Socket.io
  • Database: Docker, MongoDB
  • CI/CD: GitHub Actions

Local Development

Database and Server Setup

  • Ensure that Docker is installed and running
  • In your terminal, cd into the server directory and run npm install
  • From the project root, open your terminal and run docker compose up
    • Seed data will be populated in the database automatically
    • The server will be running on http://localhost:3000
    • There are two test users by default, Admin123 and TestUser123
    • The password for each test user is passworddd

The server/README.md provides additional information on build scripts and environment variables.

Client Setup

  • In another terminal window, cd into the client directory and run npm install
  • Run npm start
    • The application may be accessed in a web browser at http://localhost:8080

The client/README.md provides additional information on build scripts and environment variables.

Technical Requirements

The runtime environment for this application requires node >= 14.6.0 and npm >= 6.14.7.

Configuration

This application makes use of ESLint, Stylelint and EditorConfig. Each of these features requires an extension be installed in order to work properly with IDEs and text editors such as VSCode.

Accessibility

This application has been tested for accessibility via the axe DevTools - Web Accessibility Testing and Accessibility Insights for Web Chrome extensions.

simple-chat's People

Contributors

dzervoudakes 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.