Code Monkey home page Code Monkey logo

attt-project's Introduction

ATTT-Project

End-to-end encrypted chat using RSA encryption

Dependency

  • NodeJS 14.x
  • MongoDB Server 4.4.x
  • CrypticoJS
  • Argon2
  • Socket.IO

Installation

1. NodeJS

Lên trang chủ NodeJs và download phiên bản phù hợp: https://nodejs.org/en/download/
Sau khi cài đặt thêm Node vào biến môi trường để có thể gọi câu lệnh npm trên terminal

2. MongoDB

Tải phiên bản community của MongoDB Server: https://www.mongodb.com/try/download/community

3. Database

  • Tạo 1 database mới trong mongodb với tên chat-db
  • Sau khi tạo database tiếp tục tạo 4 collections của database vừa tạo: users, keys, messages, conversations

4. Các dependencies khác

  • Mở terminal, truy cập vào thư mục client và chạy câu lệnh: npm install
  • Tiếp tục truy cập vào thư mục server và thực hiện câu lệnh tương tự: npm install

Project Structure

/client: Code xây dựng giao diện, load và mã hóa tin nhắn thời gian thực
/server: Code xây dựng WebSocket Server và api để lưu trữ/load dữ liệu từ cơ sở dữ liệu

Usage

  • Mở terminal, truy cập vào thư mục server và chạy câu lệnh: npm run dev
  • Tương tự, truy cập vào thư mục client và chạy câu lệnh: npm start

attt-project's People

Contributors

quanhoang288 avatar

Stargazers

Bui Manh Tuan avatar  avatar

Watchers

 avatar  avatar

Forkers

toan1251

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.