HUB
Sign inSign up

usecase/chat-server

By usecase

•Updated over 9 years ago

A chat server based on javascript and mongo.

Image
0

1.2K

usecase/chat-server repository overview

⁠Webchat

⁠Webchat NodeJs Server

This NodeJS Backend and React Frontend (Single Page App). Webapp that enables multiple Chatrooms and the posibillity to link Chatbots.

image image image

⁠Development Setup

change to app root folder and run:

  • npm install
  • npm start

⁠Folder Structure

⁠Client Tree

Alt text

⁠Server Tree

Alt text

⁠Data Models

⁠Client Uml

Alt text

⁠Server Uml

Alt text

⁠More Information

⁠Code Conventions
  • Classes in Camelcase starting big => ClassName

  • Function in Camelcase starting small => funcName

  • Variables in Camelcase starting small => varName

  • Attributes are like variables => attName

  • Variables are on top of a function or class

  • Variable order:

    1. variable as const
    2. variable as let
    ⁠Dockerfile

⁠Build Release

npm build

docker build -t usecase/chat-server .

Run the Container

⁠Run Container

docker run -p 3000:3000 usecase/chat-server

Access the Container (check your ip -> docker-machine ip) Browse to ipaddr:3000

Tag summary
Recent tags
Content type
Image
Digest
Size
201.9 MB
Last updated
over 9 years ago
docker pull usecase/chat-server:latest