Coder Social home page Coder Social logo

waku's Introduction

Waku

Ne kadar sürecek? Bilgi yok - Ödüllü mü? Net değil olabilir. Garanti bir şey beklemiyorum, zaten kücük bir donanım.

Neden kuruyorum? Proje katılmaya değer, vaktimi almadı, bir kaç dakikada kuruluyor.

Topluluk kanalları: Twitter - Duyuru - Chat - WP - Node soruları için - Waku Discord

Donanım

Firma olarak Hetzner kullanıyorum - siz kendinize göre seçebilirsiniz.

2 CPU 2 RAM - 40 SSD

Kurulum

# Sunucu güncellemesi ve gerekli paketler
sudo apt update && sudo apt upgrade -y
sudo apt-get install build-essential git libpq5 jq -y

# kodu girdikten sonra 1 seçelim.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"

sudo apt install docker.io -y
sudo curl -L "https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Waku kurulumu

# wakuyu klonluyoruz
git clone https://github.com/waku-org/nwaku-compose
cd nwaku-compose
cp .env.example .env

# .env içine giriyoruz bu komutla
nano .env

Değiştireceğimiz kısımlar bunlar aşağıya yazıyorum:

  • ETH_CLIENT_ADDRESS = Infura'dan Sepolia RPC aldım bedava onu ekledim - https://www.infura.io/
  • ETH_TESTNET_KEY = Waku için açtığım metamaskın private keyini ekledim - Metamask hesap bilgileri kısmında
  • RLN_RELAY_CRED_PASSWORD = Bir şifre belirledim

CTRL X Y ENTER ile kaydedip çıkıyoruz.

# ve register edelim.
./register_rln.sh
# register etmeden önce cüzdanda sepolia eth olmalı

Waku node başlatma

# portları açma

# yes diyelim bu komutu girdikten sonra
sudo ufw enable

# bu port komutlarını toplu girebilirsiniz.
sudo ufw allow 22    
sudo ufw allow 3000   
sudo ufw allow 8545   
sudo ufw allow 8645   
sudo ufw allow 9005   
sudo ufw allow 30304  
sudo ufw allow 8645

# docker up edelim
docker-compose up -d

# bu komutlar ile kontrol edebilirsin logları
docker-compose ps
docker-compose logs nwaku
# bu komut ile içersine girelim:
nano ~/nwaku-compose/docker-compose.yml

içersine girdikten sonra ctrl w yaparak 3000:3000 yazıp aratalım

127.0.0.1:3000:3000 olanı 0.0.0.0:3000:3000 şeklinde değişelim.

CTRL X Y ENTER ile kaydedip çıkalım.

# tekrar başlatalım
docker-compose down
docker-compose up -d

Yaklaşık 1 saat içersine verileriniz güncellenecek

http://IP_ADRESİN:3000/d/yns_4vFVk/nwaku-monitoring

IP_ADRESİN kısmını değiştirip google'da aratın.

Yedekleme için keystore.json dosyasını kaydedin.

# Bu iki komutlada çıktı alıyorsanız sorun yoktur.
curl --location 'http://127.0.0.1:8645/debug/v1/version'
curl --location 'http://127.0.0.1:8645/debug/v1/info'

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.