Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Buat file frontend index.html: #207

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 2, 2024

  1. Create Buat file frontend index.html:

    Penjelasan:
    
    struct User: Struktur untuk menyimpan informasi pengguna.
    
    register: Fungsi untuk mendaftarkan pengguna.
    
    getUser: Fungsi untuk mengambil informasi pengguna.
    Migrasi Smart Contract
    
    Setelah kontrak selesai, buat file migrasi untuk deploy kontrak ke blockchain lokal. Buat file di direktori migrations/2_deploy_contracts.js:
    
    const Identity = artifacts.require("Identity");
    
    module.exports = function(deployer) {
      deployer.deploy(Identity);
    };
    
    Kemudian, jalankan Ganache untuk membuat blockchain lokal:
    
    ganache-cli
    
    
    Jalankan migrasi:
    
    truffle migrate
    
    Frontend (HTML + JavaScript + Web3.js)
    
    Instal dependensi Web3.js:
    
    npm install web3
    Clawue884 authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    05922e3 View commit details
    Browse the repository at this point in the history