I used Vite JS, a frontend tool, to build a ChatGPT clone with vanilla JavaScript. Then, I set up the backend server with Node JS / Express using the OpenAI API. The OpenAI documentation is so easy to understand and follow. Check out my application