This is the source code for the Hello, GPT! web app built with OpenAI's ChatGPT API, Next.js and Tailwind CSS covered in Fullstack GPT (https://www.fullstack-gpt.com/).
The terminal commands below are for Mac and other Linux-based systems. Your mileage may vary if you are using Windows or another operating system.
This project uses the MIT License. See LICENSE.md
for more information.
You can try the version hosted on Vercel (the awesome cloud computing company founded by the creators of Next.js) here:
https://bonjour-gpt.vercel.app/
This project requires Node.js 16.8.0 or higher.
For information on how to download, install and update Node.js, see their official website: https://nodejs.org/.
You can run the terminal commands node -v
and npm -v
to check what versions you have installed of Node.js and the associated package manager NPM.
Change the present working directory to the hello-gpt
folder. If you're using Visual Studio Code (https://code.visualstudio.com/), then create a new window and open the folder. Alternatively, you can use the cd
terminal command to do this. You can run the command pwd
to check you have done this correctly.
Install the dependencies for the web app:
npm install
.env.sample
, either manually or by running the following command:cp .env.sample .env.local
.env.local
:OPENAI_API_KEY=my-openai-api-key-1
npm run dev
Open your browser of choice and head to http://localhost:3000 to see the web app live locally.
Make desired changes to the web app. Next.js will automatically update the web app when you save changes to the source code.
waving-hand.svg
. The graphics for the project are licensed under CC-BY 4.0 and the code is licensed under the MIT License. The repo is available on GitHub here: https://github.com/twitter/twemoji.three-dots.svg
. Published under a MIT License, the repo is available on GitHub here: https://github.com/SamHerbert/SVG-Loaders.openai-quickstart-node
using the text-davinci-003
GPT 3.5 model for providing a useful learning resource