Skip to content

I created Ethereum locally using Ganache. An example of a smart contract using ReactJS on the frontend and Truffle on the backend for the project.

License

Notifications You must be signed in to change notification settings

Memo-Lee/Simple-storage-web3-app

Repository files navigation

web3-app

I created Ethereum locally using Ganache. An example of a smart contract using ReactJS on the frontend and Truffle on the backend for the project.

Ganache

Ganache : Ganache bizim için sanal bir Ethereum Blockchain'i yaratır bununla birlikte local ethereum zincirinde adresler açıp bizim yazdığımız kodların testini görmemizi sağlayan bir test ortamıdır.

Truffle

Truffle, geliştiricilerin Ethereum üzerinde blok zinciri tabanlı Dapps oluşturmasını kolaylaştıran bir araçtır. Geliştiricilerin akıllı sözleşmeler oluşturmasına ve test etmesine ve JavaScript gibi dilleri kullanarak genel ve özel ağlar oluşturmasına olanak tanır.

ReactJS

React, kullanıcı arayüzü (UI) oluşturmak için kullanılan en popüler JavaScript kütüphanesidir. Web siteleri işlemek için kullanıcı çıktısına harika yanıt sunan bir yöntemi kullanır. Bu aracın bileşenleri Facebook tarafından geliştirilmiştir. 2013'de açık kaynaklı bir JavaScript olarak piyasaya sürülmüştür.

abi

/* abi Nedir ?
Derlenmiş kodun byteların içerisinden o functionları çağırır.Müzenin rehber defteri gibidir.
Bir contract ile etkileşim kurulacak ise 'abi' ihtiyaç vardır. Compile edilerek elde edilir.*/

Commands

npm install
truffle compile
truffle migrate
truffle test

NOTES

npm audit fix Contractaki güvenlik açıklarını gidermemize yarıyor.
truffle migrate --network 'name' Network name change
truffle test Contractımızı test ediyor
npm install config Daha esnek bir yapı oluşturabiliriz.
truffle deploy --reset Contract aynı şekilde tekrar döndürür

Libraries

npm install @openzeppelin/contracts
npm install truffle-contract
npm create-react-app client
\client > npm install web3

About

I created Ethereum locally using Ganache. An example of a smart contract using ReactJS on the frontend and Truffle on the backend for the project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published