Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baobabkoodaa/future
A dystopia simulator powered by ChatGPT
https://github.com/baobabkoodaa/future
chatbot chatgpt dystopian gpt-3 website
Last synced: 5 days ago
JSON representation
A dystopia simulator powered by ChatGPT
- Host: GitHub
- URL: https://github.com/baobabkoodaa/future
- Owner: baobabKoodaa
- Created: 2022-12-19T19:37:09.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T12:14:34.000Z (6 months ago)
- Last Synced: 2024-12-10T03:31:41.909Z (13 days ago)
- Topics: chatbot, chatgpt, dystopian, gpt-3, website
- Language: JavaScript
- Homepage: https://future.attejuvonen.fi
- Size: 1.36 MB
- Stars: 59
- Watchers: 6
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeChatGPT+
![Screenshot](public/screenshot2.jpg "Screenshot")
A dystopic text adventure powered by ChatGPT.
Try it here: [https://future.attejuvonen.fi](https://future.attejuvonen.fi)
### Dev
1. Set up environment variables (e.g. in /.vscode/launch.json)
- OPENAI_API_KEY
- OPENAI_ORGANIZATION
- LOG_ENDPOINT2. Run server.js with node v17 (e.g. with VSCode run -> run without debugging)
3. Open http://localhost:3000
### Deployment
This repo has been set up to automatically deploy upon pushes to the master branch:
- Fly.io NodeJS backend deployment (which also serves static frontend if needed)
- Netlify static frontend deploymentThe domain [https://future.attejuvonen.fi](https://future.attejuvonen.fi) is pointing to Netlify frontend, which sends requests to Fly.io NodeJS backend, which sends requests to OpenAI API.
How to rotate multiple secrets at the same time without intermittent deployment:
`flyctl secrets -a future-attejuvonen set OPENAI_API_KEY=ssadsdadsa OPENAI_ORGANIZATION=dsdasdsa`