/tensorage-ui

Demo app that provides access to Tensorage via validators

Primary LanguagePython

About this Repository

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...

Running the Application with PM2

To run this application using PM2, follow these steps:

  1. Update system and upgrade packages
sudo apt update
sudo apt upgrade -y
  1. Install nodejs and npm and pm2.
sudo apt install nodejs npm
npm install -g pm2
  1. Install Python 3 and pip.
sudo apt install python3
sudo apt install python3-pip
  1. 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
  1. Set Environment variables
cp .env.example .env

Edit .env file and set the following variables:

REACT_APP_BACKEND_URL=http://<your-ip>:8000
  1. 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
  1. Run Web UI using PM2
pm2 start npm --name ui -- start