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.
- Latest Docker version
- Knowledge about JavaScript and Ajax
docker-compose up -d
In your browser use ports 8000 to try the app:
docker-compose run --rm node npm -s test
docker-compose run --rm node npm -s run lint
Docker:
- Use separate container for websockets server (better scalability).
WebSockets:
- Display online users
- Indicate that somebody is typing
NodeJS:
- Use PostgreSQL or MongoDB for storing messages.
- Use sessions for identifying users.
- Add private messaging