I have a JavaScript library called web3js that is a back-end library and required by NodeJS. I need to apply web3js in the client side (HTML DOM), So I tried it by Browserify. I traversed all steps mentioned in Browserify guide sequencely. So, I tried these:
I just write this single-line code in NodeJS file:
var Web3=require(web3);
That is the entire of NodeJS code.
npm install web3
browserify main.js -o bundle.js
main.js is the same NodeJS file that just has var Web3=require(web3);.
After that, I included bundle.js in my DOM:
<script src="bundle.js"></script>Now, I don't know how I should call and access web3js functions. What steps should I traverse to apply web3js there?