I actively use HTML, CSS, and JavaScript. I’m currently learning React and I have learned how to make API (Axios) requests.
I want to build a very simple product using the OpenAI API. For example, a user writes a question, a response comes from OpenAI, and the answer is displayed on the screen.
What should the most basic and correct architecture be?
You want to use something like PHP, Deno (Typescript) or Ruby on Rails for this (personally prefer latter) and running on a server in the cloud on a domain you control.
For a variety of reasons and partly because you need to keep your keys private.
To deploy a website on your own domain means learning a lot but persevere - it’s worth the journey. And you have AI now to help you!