Skip to content

caputomarcos/future

 
 

Repository files navigation

WeChatGPT+

Screenshot

A dystopic text adventure powered by GPT-3.

Try it here: https://future.attejuvonen.fi

Dev

  1. Set up environment variables

    • OPENAI_API_KEY
    • OPENAI_ORGANIZATION
    • LOG_ENDPOINT
  2. Run server.js with node v17

  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 deployment

The domain 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 set OPENAI_API_KEY=ssadsdadsa OPENAI_ORGANIZATION=dsdasdsa

About

A dystopian text adventure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.6%
  • HTML 14.4%