Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 1.82 KB

README.md

File metadata and controls

79 lines (57 loc) · 1.82 KB

🌟 OpenChat: Your Decentralized Chat Solution 🌟

🔗 Visit OpenChat

OpenChat is a fully-featured chat platform, running end-to-end on the Internet Computer blockchain. 🌐 Experience secure, scalable, and decentralized communication like never before. 🚀


Prerequisites 🛠️

1️⃣ DFX 0.23.0

Install using:

DFX_VERSION=0.23.0 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"  

2️⃣ Rust

Install with a single command:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh  

3️⃣ NPM

Download Node.js from: Node.js Official Website


Testing Locally 🚀

1️⃣ Start DFX

dfx start  

2️⃣ Deploy All Canisters (OpenChat + NNS)

./scripts/deploy-local.sh  

3️⃣ Run the Frontend Website

npm --prefix frontend run dev  

4️⃣ Upgrade Canisters (Example)

./scripts/upgrade-canister-local.sh <DFX_IDENTITY_NAME> <CANISTER_NAME> <VERSION>  
# Example: ./scripts/upgrade-canister-local.sh default user 1.0.0  

5️⃣ Fresh Start (Optional)

  • Stop DFX.
  • Remove all previous configurations:
    rm -rf .dfx  
  • Start again from step 1.

Deterministic Builds 🔒

Ensure verifiable and secure builds:

  • Build the OpenChat canister WASMs:
    ./scripts/docker-build-all-wasms.sh  
  • Verify by comparing local WASM hashes with those exposed on the Internet Computer.

License 📜

© 2024 OpenChat Labs LTD
Licensed under AGPLv3


💡 Our tests run fast and efficiently with RunsOn.