This repository contains the code for front-end application of tensorage. This application is designed to facilitate interaction between users and the network by providing features for storing and retrieving files.
- Dashboard coming soon...
To run this application using PM2, follow these steps:
- Update system and upgrade packages
sudo apt update
sudo apt upgrade -y
- Install nodejs and npm and pm2.
sudo apt install nodejs npm
npm install -g pm2
- Install Python 3 and pip.
sudo apt install python3
sudo apt install python3-pip
- Clone this repository to your machine and install required modules.
git clone https://github.com/tensorage/tensorage-ui
cd tensorage-ui
python -m pip install -r requirements.txt
npm install
- Set Environment variables
cp .env.example .env
Edit .env file and set the following variables:
REACT_APP_BACKEND_URL=http://<your-ip>:8000
- Run backend code using PM2
pm2 start bridge.py --interpreter python3 --name ui-bridge -- --wallet.name <validator-coldkey> --wallet.hotkey <validator-hotkey> --netuid 7 --subtensor.network finney
- Run Web UI using PM2
pm2 start npm --name ui -- start