Giter VIP home page Giter VIP logo

simple-chat's Introduction

Simple Chat Client and Server

Description

A simple socket.io chat client and server with a responsive AngularJS/Bootstrap UI.

Repository

https://github.com/PanchoPuncho/simple-chat

Dependencies

Step-by-step instructions (for macOS)

If Needed, Install Node.js

brew install node

Install the App (only necessary for the initial run)

npm install

Start MongoDB

Open a New Terminal Window and Run the App

node src/js/server

[Optional] Connect to MongoDB through CLI

  • mongo --host 127.0.0.1:27017
  • use simple-chat
  • db.users.find()

Criteria

Server

  • Support at least 2 simultaneous clients
    • Supports n-clients

Client

  • Left (or right) windows displaying connected usernames
    • Left window - collapses when accessed through mobile or other portrait style screen.
  • Main panel displaying the chat log
    • Displays and distinguishes between sent messages, received messages, and server level messages with updates on connected and disconnected users.
  • Chat log should only display the message form the current session (server does not need to push a history)
    • Accordingly, only displaying messages from the current session

Bonus

  • Utilize WebSockets for communication
    • Using socket.io for real-time communication
  • User signup (create a username and password), with authentication
    • Using socketio-auth for authentication and MongoDB to store the username, password hash, and user state (active/inactive).

Running End-To-End Tests

  • Tab0: mongod
  • Tab1: node src/js/server
  • Tab3: If webdriver-manager is not in the path, run export PATH="$PATH:./node_modules/.bin"
  • Tab3: sudo webdriver-manager update --standalone --versions.standalone=3.8.0 && sudo webdriver-manager start --versions.standalone=3.8.0
  • Tab4: protractor e2e/protractor.conf.js

References

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.