Skip to content

Latest commit

 

History

History
71 lines (40 loc) · 2.64 KB

readme.md

File metadata and controls

71 lines (40 loc) · 2.64 KB

Backend Branch

this is the master branch for the server-side code-behind chat.io

Both Backend and Frontend should be considered as separated projects each one with its dependencies. if you are about to contribute to this project or just to play around with the code I suggest cloning each master branch in different folders

About The Project

the Core concept here revolves around WebSocket, instead of the classic server polling architecture, using an event-based communication allows for (almost) real-time communication between the server and our clients, who will listen and react to the changes

this image explains dead simple how the backend works

Stack used

JavaScript

Node.js

Express

MongoDB

For handling Web Socket connections and event emitting and listening I'm using Socket.io, creating a server instance inside the express app. For authentication I've opted for a JWT strategy, at the project's current state it does not include a refreshToken functionality, logging you out once your access token is rejected by the server.

Contributing

Alt

If you have a suggestion that would make this better, please fork the repo and create a Pull Request. You can also simply open an issue with the tag enhancement.

Don't forget to give the project a star ⭐!

  1. Fork the project

  2. Clone the repository

git clone -b master-backend https://github.com/AlejoTorres2001/chat.io.git
  1. Create your Feature Branch
git checkout -b feature/AmazingFeature
  1. Push to the Branch
git push origin feature/AmazingFeature
  1. Open a Pull Request