Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

justiceo/WebChat

Open more actions menu

Repository files navigation

WebChat | WhatsApp Clone

A clone of WhatsApp Web using the base of WebChat.

Auth screen

Auth Screen

Chat screen

Chat Screen

Proposed Features

  • Send and receive messages (real & automated)
  • Send different kinds of content as message (images, videos, plain text, emoji)
  • Documentation
  • Unit testing
  • Notifications (new message, battery status, title bar, enable notifications)
  • Cherry picking into v2

NPM Gotchas

  • Nodemon repeatedly spawning new processes? Kill it before it kills your machine.
    • Ensure the processes that are being started aren't already running in the background: node, ng, gulp, nodemon, redis-server.
  • Redis server error: Redis server binary must be installed on the host machine, the npm library merely references it.
  • Sass-loader error: Remove node_modules, clear npm cache and re-install.

Installation

Download repo and install dependencies:

git clone https://github.com/justiceo/whatsapp-web-template
cd whatsapp-web-template
npm install

Install redis (for server app):

npm i redis
apt install redis-server

To start up server (which would serve template):

npm start

To use angular-cli to serve the web app alone:

npm i -g @angular/cli
ng serve

Deploying

Build the UI and server (requires installation of @angular/cli and gulp@4):

ng build 
gulp build

Install PM2 and start the server (starts webapp at http://localhost:3000):

npm i -g pm2
pm2 start dist/index.js

There are several ways to view it at http://chat-domain.com, below is one using apache2 proxy (requires mod_proxy):

<VirtualHost *:80>
  ServerName  chat-domain.com

  # Point to pm2 or node instance of whatsapp web
  ProxyPass             / http://localhost:3000/
  ProxyPassReverse      / http://localhost:3000/
</VirtualHost>

About

WebChat UI app using Angular5+. Include WhatsApp web UI clone.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.