These instructions are about the dev environment for frontend development. For contract development see augmint-contracts repo
-
Install nodejs
NB: check supportednode
version in package.jsonor install nodejs with n node version manager:
npm install -g n n <node version, eg: 10.15.3>
-
Install yarn if you don't have it:
npm install -g yarn@<version>
NB: check requiredyarn
version in package.json -
Docker cli - Optional but required for running tests
-
git clone https://github.com/Augmint/augmint-web.git cd augmint-web yarn install
Note: windows install was not tested since a while, update on it is welcome
-
Git (if you haven't installed it as part of Git Bash in previous step)
-
nodejs NB: check supported node version in package.json
or install nodejs with Node Version Manager(NVM):
nvm install <node version number, eg: 10.15.3> nvm use 10.15.3
-
Install yarn if you don't have it:
npm install -g yarn@<version>
NB: check required yarn version in package.json -
If you want to run on local test blockchain (eg. for tests) then Install docker cli
-
in Git bash:
git clone https://github.com/Augmint/augmint-web.git cd augmint-web yarn install
git pull
yarn install # if there were any node package changes in packages.json
yarn ganache:start
yarn ganache:stop
yarn start
NB: If you are using Metamask on local chain (e.g. ganache in docker) and you restart the local chain then your consecutive transactions will fail with Invalid nonce
error. You will need to reset your account in Metamask.
yarn test
- interactive:
yarn cypress:open
- command line:
yarn cypress:run