This project creates a cool landing page by utilizing GPT-4 (or GPT-3.5turbo) to transform campaign descriptions into engaging and visually appealing web content.
It uses GPT-4 to generate sections based on the input, users are able to restructure and add their own sections and then using Vercel Edge and stream generate each component's Html.
git clone https://github.com/mohamedcherifmo/landingpagegpt-public.git
After cloning the repo, go to OpenAI to make an account
Create a file in root directory of project with env. And store your API key in it, ex. .local.env file. Add the following:
DATA_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
npm install
Then, run the application in the command line and it will be available at http://localhost:3000
.
npm run dev
Deploy the example using Vercel: