React UI for the paralink-node.
Have npm > 5 installed
npm --version
To check your version, otherwise, you can upgrade simply
npm install -g npm@6.14.8
This is to make sure you'll have the same package-lock.json generated.
The project requires node
>= 14.
Installing nvm will help you switch between different versions of node. The instructions for installing nvm are here: https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Go to the directory of the repo where the .nvmrc file leaves and install the node version:
cd paralink-ui
nvm install
npm i
This would install the correct node version for you, and then install the dependencies
nvm use
Would use the node version specified on the current repo.
To install backend follow the instructions in the paralink-node repo. Use:
docker-compose up --build
in the backend repo to start a headless node.
In the project directory, you can run:
npm start
It runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
- Using VSCode