Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infomiho/socialpostgpt
Uses magic to generate social media posts using Wasp, ChatGPT and stock photos APIs
https://github.com/infomiho/socialpostgpt
chatgpt media social wasp-lang
Last synced: 2 months ago
JSON representation
Uses magic to generate social media posts using Wasp, ChatGPT and stock photos APIs
- Host: GitHub
- URL: https://github.com/infomiho/socialpostgpt
- Owner: infomiho
- Created: 2023-03-18T07:23:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T13:03:40.000Z (3 months ago)
- Last Synced: 2024-10-25T13:25:42.024Z (3 months ago)
- Topics: chatgpt, media, social, wasp-lang
- Language: TypeScript
- Homepage: https://socialpostgpt.xyz/
- Size: 224 KB
- Stars: 47
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hello there 👋 Welcome to the source code of [SocialPostGPT.xyz](https://socialpostgpt.xyz).
We are using:
- [Wasp](https://wasp-lang.dev) as our full-stack framework
- [OpenAI](https://openai.com)'s ChatGPT
- [Unsplash](https://unsplash.com) and [Pexels](https://pexels.com) for stock photosHere'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 socialpostgpt-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
```