To do local installation, you have 3 different options:
To run using gitpod, search this:
https://gitpod.io/new/#https://github.com/aaravm/eth-watchdog
To run using docker: Step 1: Building the containers
docker build -t nillion-python-starter .
Step 2: Run the Docker Container:
docker run -it nillion-python-starter
To run the servers:
docker build -f Dockerfile.flask -t flask-app .
docker run -p 5000:5000 flask-app
To run locally:
Step 1: Clone the Repository Step 2: open the nillion-python-starter folder using:
cd nillion-python-starter/
Step 3: Install Nillion and its dependencies:
curl https://nilup.nilogy.xyz/install.sh | bashnilup install latest
nilup use latest
nilup init
For telemetry analysis of wattelk address
nilup instrumentation enable --wallet <your-eth-wallet-address>
Install minimum python version
python3 --version
python3 -m pip --version
Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate
Install the requirements from .txt file in root
pip install --upgrade -r requirements.txt
For compiling the nada file, run this in the same dir as nada.toml
nada build
Spinning up local devnet
nillion-devnet
To run the server.py file, go to the client_code directory and run:
python3 server.py
Make sure that server would run at localhost:5000
Go to the client directory , to run the application:
npm i --force
npm run start
The app would be running at localhost:3000.