If I am using Infura Node interact with smart contracts. And I want to build/setup web3 apis on a ubuntu machine on AWS. Do i need to install truffle on that machine or just node.js and web3 is enough?
Download Node.js and npm from https://nodejs.org/en/, and then install them.
npm install web3.