This repository contains the backend code of my chat application.
https://github.com/sgbtech96/socialize-web
- A clean and systemic directory structure containing different versions of APIs, middlewares, validators, etc.
- Use of jsonwebtoken based authencation mechanism to validate incoming requests to protected routes and manage login seesions.
- Socket.io server for enabling real time messaging and notifications.
- Each incoming request to socket passes through the middleware.
- Backend validation of data.
- Models for each schema defined with proper rules.
- A clean and structured response of each API made available to the frontend with proper error messages, if any.
Node.js, express, mongoDB, mongoose, socket.io, JWT, bcrypt, joi validators, nodemailer, oAuth2, etc.