Skip to content

This is a backend repository to be used with whatsapp-frontend

License

Notifications You must be signed in to change notification settings

faizvasaya/whatsapp-backend

Repository files navigation

Whatsapp-backend

A backend repository to simulate a whatsapp-like realtime communication

NodeJS

Whatsapp-backend is a NodeJS based backend application that leverages the power of real-time communication using Pusher and MongoDB changestreams.

Architecture

Fololowing is the architecture of the application. Architecure Diagram

Tech

whatsapp-backend uses a number of open source projects to work properly:

  • Express - Fast, unopinionated, minimalist web framework for Node.js
  • Mongoose - Elegant mongodb object modeling for node.js
  • Pusher - Powering realtime experiences for mobile and web

Environment setup

  • Add the connectionURL value in server.js. It should be the complete connection URL of the mongodb database that you're willing to use.
  • Create an account on Pusher, obtain credentials and use it to replace values for pusher in server.js file.
  • Companion frontend repository is available here: whatsapp-frontend

Installation

whatsapp-backend requires Node.js v16+ to run.

Install the dependencies and devDependencies and start the server.

cd whatsapp-backend
npm i
nodemon server.js

Author

Faizal Vasaya

LinkedIn Twitter

License

MIT

Free Software, Hell Yeah!

About

This is a backend repository to be used with whatsapp-frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published