Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho authored Mar 29, 2023
1 parent 48638ca commit 2f47adb
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# SocialPostGPT.xyz

Hello there 👋

Here's a quick overview of how things work:

![shapes](https://user-images.githubusercontent.com/2223680/228483785-61cca62a-9161-4c9c-a751-9e7f44645b1a.png)

- based on the user input (text + some choices)
- ask ChatGPT to produce two things:
- a catchy social media post content
- good, generic search keywords for stock photos
- search for the photos on Unsplash and Pexels
- combine everything into the final result!

### Running it locally

Copy `env.example` to `.env.server` and fill in the values.

You'll need a PostgreSQL running locally. You can use Docker to run one:

```bash
docker run --name daily-ai-comics-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres
```

Make sure you have Wasp installed ([installing Wasp](https://wasp-lang.dev/docs#2-installation)), then run:

```bash
wasp db migrate-dev
```

and then:

```bash
wasp start
```

### Deploying to Fly.io

Make sure you have the Fly CLI installed, then run:

```bash
wasp deploy fly launch <name> <region> # first time
```

where `<name>` is some unique app name and `<region>` is one of [Fly.io regions](https://fly.io/docs/reference/regions/).

```bash
wasp deploy fly deploy # subsequent times
```

0 comments on commit 2f47adb

Please sign in to comment.