Hello there 👋 Welcome to the source code of SocialPostGPT.xyz.
We are using:
Here's a quick overview of how things work:
- 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!
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:
docker run --name socialpostgpt-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres
Make sure you have Wasp installed (installing Wasp), then run:
wasp db migrate-dev
and then:
wasp start
Make sure you have the Fly CLI installed, then run:
wasp deploy fly launch <name> <region> # first time
where <name>
is some unique app name and <region>
is one of Fly.io regions.
wasp deploy fly deploy # subsequent times