I am new to Solidity and Web3.js. I created a contract and tested it using Remix. With Web3.js, I am able to get the contract instance if I know the address and query it and print the results on a web page.
But I want to query and get all the instances of a type of contract that is already created and list it on my HTML page. For this, I assume that I have to get the addresses of these instances. I will appreciate if anybody can provide pointers on how to go about doing this.
If this is not possible, I want to be able to create instances of contract from Web3.js without having to create it in Remix. Pointers for that will also be appreciated.