I'm developing a nodejs application and trying to integrate blockchain in it. Here in my application, I want to create a blockchain where only the server (my app) can create blocks. The blockchain is public and anyone can view it. I just need a simple way to store this blockchain publically and everyone has the read permission.
With my limited knowledge, I have created a system using node and MongoDB. where each block is stored as a document in db. using an api anyone can view the database, which didn't work.
Which backend technology should i use to get this done? Which specific npm modules should into?
There are three types of blockchain Public Blockchain, Private Blockchain and Consortium Blockchain. What you want is the Consortium Blockchain in which you can have a Control on blockchain and it is semi decentralised.
To interact with the blockchain to Show all the data you have to make the distributted application and use the Web3 Libraray to interact with blockchain.
So all your data can be Access through web3 library api and you Show it to your app. Through that anyone can see the data publicly.