Hi,
I'm pretty new to web dev so please forgive my begineer question. I have been trying for a few hours now to get the OpenAI project from scrimba working locally and I'm having such a hard time. There are so many errors out of the gate. import statements don't work, process.env doesn't work because apparently that doesn't work in the browser. I tried watching a few tutorials on npm and node.js because it seems like it's a server related issue, but then how do you plug OpenAI which can be a front end and still use server? I'm just very lost. Any help in a high-level overview of how browsers and servers work together would be incredible.
Also another thing I tried was using http-server as a dependency and I have tried running that but that also breaks things as well.
For context I'm using VSCode to attempt to run code locally. I have live-server extension and trying to run things that way. I'm also trying in my "start" script in package.json I'm trying to say "start" : "http-server index" but that doesn't work either.