Skip to content

kasthomas2/simple-test

 
 

Repository files navigation

Simple Demo of Veritone API Stuff

Under construction.

Live demo: https://veritone-k1.netlify.app/

To use it, you should first sign up at https://www.veritone.com/wp/sign-up/ (free account). Then you can use the same credentials to sign in to Veritone via the demo page. That way, the demo page obtains your bearer token (session token for the Veritone API) and can use it to run GraphQL queries on your behalf.

You should also (optionally) obtain a Slack webhook and paste your webhook URL into the form on the second page of the demo app. This lets you get some pretty cool log messages in your Slack channel.

What the Demo Demonstrates

  • How to log in to Veritone and get the bearer token
  • How to send log messages to Slack
  • How to run GraphQL queries via browser fetch()
  • How to delegate GraphQL queries to an AWS Lambda (see src/lambda/gql.js) so you can run your queries as simple GETs against the lambda (Veritone's API server only accepts POSTs!)
  • Create/read/delete TDOs (Temporal Data Objects)
  • Run a transcription job on a video.

The demo site is automagically built using Netlify, and Netlify kindly deploys my lambdas to AWS so I don't have to, which is very cool indeed. Note: There are lots of demo lambda scripts under src/lambda. The only one my app actually uses is gql.js.

All the HTML is in index.html, the way nature intended.

No frameworks (React, etc.) are used. This is a plain vanilla web app.

Steal/copy the code as you wish, but only at your own risk!

Disclosure: I work for Veritone, but this repo is a personal spare-time project, not supported by Veritone.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.0%
  • CSS 12.5%
  • HTML 12.5%