Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/infomiho/dailyaicomics

Daily AI Comics using Wasp, ChatGPT and Stable Diffusion
https://github.com/infomiho/dailyaicomics

Last synced: 3 months ago
JSON representation

Daily AI Comics using Wasp, ChatGPT and Stable Diffusion

Awesome Lists containing this project

README

        

# Daily AI Comics

Hey 👋 Thanks for checking out Daily AI Comics source. This is an experiment in using ChatGPT and Stable Diffusion to generate daily comics.

- We use [Wasp](http://wasp-lang.dev) to build the site and deploy it to Fly.io.
- We use [Replicate](http://replicate.com) to generate images
- We use [Cloudflare R2](https://www.cloudflare.com/en-gb/products/r2/) for image storage

### 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 # first time
```

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

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