Skip to content

BxlContact chat software is a web chat tool based on nodejs+express+websocket module.

Notifications You must be signed in to change notification settings

ELEC-H417-Group/BxlContact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BxlContact

BxlContact chat software is a web chat tool based on nodejs+express+websocket module.
The front end uses ejs as the template engine. The server uses express to build a web service, and ws to create a server websocket service, which realizes the functions of login and registration, one-to-one chat and private chat (end-to-end encryption).

Live Demo

Features

[✔]Support one-to-one messaging 👏

[✔]Support end-to-end encryption 🔒

[✔]Support online user statistics and user list 📗

[✔]Message notification ⏰

[✔]Keyboard support 🎹

[✔]Support for mobile phone, tablet and PC 📱 💻

Install

This project uses node and npm. Go check them out if you don't have them locally installed.

Enter the BxlContact main folder through the terminal and run:

$ npm install --global 

OR

If it fails, you can check the dependency list in the package-lock.json file and install them one by one

Usage

When you have completed the install step, enter the home directory and use the command:

$ npm start

If the server run successfully, you can enter the following address in your browser:

http://localhost:3000/

Cannot Start the Server?

  1. re-install the dependency and restart
  2. check the port of your computer, 3000 and 9876, whether are open
  3. check the node.js version, use the stable version of node.js
  4. If none of these can solve your problem, you can log in to our demo website to view the function

MySQL Database

If you want to build a similar database on your computer or server through this project, you can use the following code:

CREATE TABLE `bxlcontact`.`user`(
`username` VARCHAR(100) NOT NULL,
`password` VARCHAR(100) NOT NULL,
PRIMARY KEY (`username`)
) ENGINE=MYISAM CHARSET=utf8 COLLATE=utf8_general_ci;



CREATE TABLE `bxlcontact`.`content`( 
`id` INT(100) NOT NULL AUTO_INCREMENT, 
`from` VARCHAR(100) NOT NULL,
`to` VARCHAR(100) NOT NULL, 
`content` VARCHAR(1000) NOT NULL, 
`time` DATETIME(6) NOT NULL, PRIMARY KEY (`id`) 
) ENGINE=MYISAM CHARSET=utf8 COLLATE=utf8_general_ci;  

Video Instruction

Watch the video

About

BxlContact chat software is a web chat tool based on nodejs+express+websocket module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages