Web3 API Call issue

Hi there, a simple, stupid newbie question:

Have created a project, with backend using Moralis for API calls to read Smart Contract’s various functions. All working great. Am typing “node index.js” and at http://localhost:3001 am receiving API calls (for example: http://localhost:3001/getNameAndBalance)

however, if I close VS code and open up again, always need to run "node index.js) to get the results.

Now, once I upload my project to real server and make it online on Internet, how the hell am I gonna get the API calls? what exactly should I change to make it run automatically once ppl go to my website and connect wallet?

Thanks a lot

Hi, one you upload your app on a server, It will remain online

I recommend checking our demo apps, we have multiple examples of boilerplate applications
https://docs.moralis.io/example-dapps/evm

Thanks for reply. So, you are saying, that unlike on localhost (where I have to run “node index.js” to receive API calls), once upload to Netlify or whatever server I use, without making any changes in the code ( for example this function: async function getNameAndBalance() { const res = await axios.get(http://localhost:3001/getNameAndBalance, { params: { userAddress: address }, }) It will run OK and will receive those API calls once connect wallet. Correct?

I have checked your demo apps, am actually following one of Moralis youtube videos, where they dont mention about any changes we need to do to continue getting Moralis API calls once upload on real server