This repository has the server code of my Cross-Platform End-to-End Messenger Application. More precisely, this is the backend of the login/register system that I have implemented, and it also enables end-to-end chat facility between users through the use of web sockets.
- Authorization system uses jsonwebtoken.
- Session management with the limit of 2 sessions per user at a time.
- Otp based email verification using nodemailer.
- Hashing and securely storing user passwords using bcrypt.
- Backend validation of data sent from the client.
- Efficient database management as well as a clean structure for registering, logging in, and logging out users.
- Support for web sockets that enables real time data transfer.
- A logged in user has the provision to chat end to end with any other registered user.
- All your chats are preserved in the database i.e they are not lost when you log out.
- A comprehensive structure has been followed to keep the chats between distinct pair of users in Mongo DB cloud.
- The entire chat service is behind the JWT based auth.
Node.js, MongoDB, Socket.IO