Git Product home page Git Product logo

future's Introduction

WeChatGPT+

Screenshot

A dystopic text adventure powered by ChatGPT.

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

Dev

  1. Set up environment variables (e.g. in /.vscode/launch.json)

    • OPENAI_API_KEY
    • OPENAI_ORGANIZATION
    • LOG_ENDPOINT
  2. 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 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 -a future-attejuvonen set OPENAI_API_KEY=ssadsdadsa OPENAI_ORGANIZATION=dsdasdsa

future's People

Contributors

baobabkoodaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.