Skip to content

pnetwork-association/ptokens-dapp

Repository files navigation

Tests Security Check

pTokens dapp

The pTokens dapp

 

🏡 Setting the environment:

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

 


 

🔧 Development:

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

 


 

⚙️ Build and preview:

npm run build && npm run preview

JavaScript heap out of memory error

In case of Javascript heap out of memory error increase the heap with:

export NODE_OPTIONS=--max-old-space-size=4096

Swap setup

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.

 

🚀 Deploy:

npm run deploy

The build is deployed and pinned to IPFS and the CID is returned.