Skip to content

Uses magic to generate social media posts using Wasp, ChatGPT and stock photos APIs

Notifications You must be signed in to change notification settings

infomiho/socialpostgpt

Repository files navigation

Hello there 👋 Welcome to the source code of SocialPostGPT.xyz.

We are using:

Here's a quick overview of how things work:

shapes

  • 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:

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

Deploying to Fly.io

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

About

Uses magic to generate social media posts using Wasp, ChatGPT and stock photos APIs

Topics

Resources

Stars

Watchers

Forks

Packages