Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcristo committed Apr 18, 2023
1 parent e39936a commit 02e3762
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
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/).

0 comments on commit 02e3762

Please sign in to comment.