The pTokens dapp
Clone the ptokens-dapp
repo
git clone https://github.com/pnetwork-association/ptokens-dapp.git
Switch into the ptokens-dapp
:
cd ptokens-dapp
Install dependencies:
npm install
Before running it you must clone ptokens.js
, build it and copy all packages within this node_modules
folder (it's not a good solution but make it easy to develop in paraller both ptokens.js
and ptokens-dapp
)
Start ptokens-dapp
via:
npm run dev
npm run build && npm run preview
In case of Javascript heap out of memory error increase the heap with:
export NODE_OPTIONS=--max-old-space-size=4096
The build processes could be stopped with a killed
message with no error. In this case it is possible swap memory is not configured correctly. Please increase the swap for the operating system used.
npm run deploy
The build is deployed and pinned to IPFS and the CID is returned.