cd contract
First if you dont have a mydata
directory in the dist
directory it might fail. So lets add that.
mkdir dist/mydata
npm install
npm run start
npm run build
Because of the system architechure and process to deploy the build performed on a mac os will build the application for the mac os. This generates a folder inside contract/dist/prebuilds
for the coresponding os. The image platform does not alway match the os platform so we have to make some changes.
We will update the index.js
Change:
module.exports = require(__nccwpck_require__.ab + "prebuilds/darwin-x64/node.abi93.node");
To:
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.abi93.node");
npm run deploy
cd client
npm install
node client.js
This repo would not be possible without @Udith-Gayan and his evernode + sqlite example