Git Product home page Git Product logo

demo-sms-voice-node-trivia's Introduction

Vonage Trivia

A fun trivia game using GPT to generate questions and Vonage API's to get help from other developers

Installation

Requirements

  • Node 16 or higher
  • Air Table (for finding players and audience)
  • A Vonage Application that has numbers for receiving SMS and can make Phone calls
  • NGrok (if running locally)

Environment Variables

Rename env.dist and fill in the correct environment variables

  • PORT Port to run webserver on
  • VONAGE_API_KEY API Key
  • VONAGE_API_SECRET API Secret
  • VONAGE_PRIVATE_KEY The Private key for the application (should be the contents of the file)
  • VONAGE_APPLICATION_ID Vonage Application ID
  • OPENAI_API_KEY ChatGPT API key
  • FROM_NUMBER Number to send text messages from
  • AT_BASE_ID Base ID for the AirTable
  • AT_TABLE_ID AirTable table ID
  • AIRTABLE_TOKEN AirTable Token

Commands

  • npm run start Start the webserver
  • npm run watch Watch changes and restart the web server (use for dev)
  • npm run livereload Set up live reload (use for dev)

Notes

  • Games will be written to a local file (games.json)
  • SMS Messages will be streamed into a file (particpants.txt)
  • When using the Text the Audience feature, the application will update the URLS for the Vonage Application to include the game Id. This means that you cannot run two games at the same time using the same Vonage Application

demo-sms-voice-node-trivia's People

Contributors

manchuck 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.