How to set up a dev enviroment for the DAPP - VahanamOrganization/vahanam-supply-chain GitHub Wiki

Our tutorial was on ubuntu with 1gb ram hosted on Digital ocean.

First you have to set up Nodejs:

sudo apt-get install curl

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

sudo apt-get install nodejs

Then you have to install yarn:

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt update && sudo apt install yarn

Then clone the repository:

git clone https://github.com/VahanamOrganization/vahanam-supply-chain.git

Then go to the dapp folder:

cd dapp

And yun:

yarn install

And you are ready to yun the DAPP with the command:

'yarn start'

Note: If you came up to a error for the memory you have to limit the file watcher with that command: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p run

If you want to develop on your public IP ( not safe ) you can change the package.json file and and the command "start": "webpack-dev-server --host=0.0.0.0"