Skip to content

NodeJS workshop chat examples and exercises

Notifications You must be signed in to change notification settings

Laruxo/chat-nodejs

Repository files navigation

NodeJS Chat Example

Using ExpressJS

For learning purposes only.

It is intended to start from "start" branch. Use master branch only for reference.

For best overview it is recommended to complete example in "ajax" branch first, then "websockets" branch and finally go to master.

Requirements

  • Latest Docker version
  • Knowledge about JavaScript and Ajax

Starting examples

 docker-compose up -d

In your browser use ports 8000 to try the app:

Test and Lint

 docker-compose run --rm node npm -s test
 docker-compose run --rm node npm -s run lint

Improvement ideas

Docker:

  • Use separate container for websockets server (better scalability).

WebSockets:

  • Display online users
  • Indicate that somebody is typing

NodeJS:

Releases

No releases published

Packages

No packages published