In this tutorial I'm going to walk you through a complete website build that integrates with the OpenAI API. Here we'll be using PHP and vanilla JavaScript to build our website.
The website that we're going to build is called 'Clown News'.
With this website, you get to enter a news headline with some kind of bad news. The OpenAI API will then create a funny headline that blames the bad news on a gang of creepy clowns. Finally, the website will use OpenAI to generate an image that represents the funny news headline that you have just had generated.
Yes, this tutorial is a bit longer than usual. However, by the end of this one you'll have a good understanding about how to integrate Chat GPT and Open AI with your PHP / JavaScript websites.
The entire, finished application is available to download from GitHub at the following URL:
https://github.com/trongate/Clown-News
For this tutorial, we're going to be using the Trongate framework. It's available from:
https://trongate.io/download
If you'd like to see more of this kind of content then please consider giving Trongate a star on GitHub. The GitHub URL for Trongate is:
https://github.com/trongate/trongate-framework
Download
0 formats
No download links available.
Build a website with OpenAI integration (aka Chat GPT) using PHP and vanilla JavaScript | NatokHD