Binance Square
#coursecomplete

coursecomplete

148 Aufrufe
4 Kommentare
معرف 1032569195
·
--
Felipe Brayner:
Amém 🙏🏻, eu participei também ! Siga me.
ICP Complete Course — Teil 36: End-to-End-ProjektEND-TO-END-PROJEKT: BAUE EINE DEZENTRALE TODO-LISTE Lass uns eine komplette Anwendung von Grund auf neu erstellen. PROJEKT-EINRICHTUNG: 1. Installiere dfx 2. Projekt erstellen: dfx new todo-app 3. Motoko oder Rust wählen 4. dfx.json konfigurieren BACKEND-CANISTER: Actor TodoApp { stabile Variable todos: [(Nat, Text, Bool)] = []; stabile Variable nextId: Nat = 0; public func addTodo(text: Text) : async Nat { let id = nextId; todos := Array.append(todos, [(id, text, false)]); nextId += 1; return id; }; public func completeTodo(id: Nat) : async () {

ICP Complete Course — Teil 36: End-to-End-Projekt

END-TO-END-PROJEKT: BAUE EINE DEZENTRALE TODO-LISTE
Lass uns eine komplette Anwendung von Grund auf neu erstellen.
PROJEKT-EINRICHTUNG:
1. Installiere dfx
2. Projekt erstellen: dfx new todo-app
3. Motoko oder Rust wählen
4. dfx.json konfigurieren
BACKEND-CANISTER:
Actor TodoApp {
stabile Variable todos: [(Nat, Text, Bool)] = [];
stabile Variable nextId: Nat = 0;
public func addTodo(text: Text) : async Nat {
let id = nextId;
todos := Array.append(todos, [(id, text, false)]);
nextId += 1;
return id;
};
public func completeTodo(id: Nat) : async () {
Anmelden und weiter Inhalte entdecken
Krypto-Nutzer weltweit auf Binance Square kennenlernen
⚡️ Bleib in Sachen Krypto stets am Puls.
💬 Die weltgrößte Kryptobörse vertraut darauf.
👍 Erhalte verlässliche Einblicke von verifizierten Creators.
E-Mail-Adresse/Telefonnummer