This is a fake tweet generator app based on the Pet name generator app created for the OpenAPI quickstart tutorial. Check out the instructions below to get the project running.
-
If you don’t have Node.js installed, install it from here
-
Clone this repository
-
Navigate into the project directory
$ cd openai-tweet-generator
-
Install the requirements
$ npm install
-
Go to the OpenAI API site
-
Sign up for an account and follow their documentation to generate an API key
-
Create a
.env
file in the main directory of this repository and copy your newly generated API access key in the following formatOPENAI_API_KEY=PASTE_YOUR_API_KEY_HERE
-
Run the app
$ npm run dev
You should now be able to access the app at http://localhost:3000! Feel free to modify the app to do whatever you'd like and don't forget to check out the OpenAI tutorial covering usage of the API!
This project was created with the Next.js framework with React.
This project uses the fake-tweet react component by lluiscamino.