-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
# gpt-html | ||
<div align="center"> | ||
<h1> | ||
gpt-http | ||
</h1> | ||
<p> | ||
<strong> | ||
GPT website generator | ||
</strong> | ||
</p> | ||
</div> | ||
|
||
## About | ||
|
||
A website where the HTML content for any given request path is generated by GPT using the [OpenAI API](https://platform.openai.com/). Inspired by [LiveOverflow's video](https://www.youtube.com/watch?v=M2uH6HnodlM) building something similar. | ||
|
||
The application is deployed at [gpt.dtcristo.com](https://gpt.dtcristo.com/) but it is protected by HTTP Basic authentication. Please contact me directly if you want the credentials to try it out. Otherwise, get your own OpenAI API key from [platform.openai.com](https://platform.openai.com/) and run it yourself. | ||
|
||
## Usage | ||
|
||
Requires a Ruby environment, tested with Ruby 3.2. | ||
|
||
```sh | ||
# Set OpenAI API key as environment variable. | ||
export OPENAI_API_KEY="your_api_key_here" | ||
|
||
# Install dependencies. | ||
bundle install | ||
|
||
# Start the web server. | ||
bundle exec puma | ||
``` | ||
|
||
Application live at [localhost:9292](http://localhost:9292/). |