Its not entirely same but imagine you run same project on your machine which we call localhost but you have to ran it on different machine(your hosting server) so things will be little different .Because it’s your backend code, you need a server that can actually run Node.js, not just serve files, and your MongoDB also needs to live somewhere accessible (like MongoDB Atlas).”