When a js-ipfs node is started programatically using the below code in node.js app, it is launching the swarm, allowing to add files and query them back.
// code from the docs: https://github.com/ipfs/js-ipfs#use-in-nodejs
const IPFS = require('ipfs')
const node = new IPFS()
node.on('ready', () => {
// Ready to use!
})
But the API and gateway are not available, which means the web-ui is not available to inspect the repo contents. How to start the API gateway along with ipfs swarm using the ipfs
npm package?