joerx / paco

Serverless demo application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless Application Demo

Upload an image containing text, have the text extracted and played back to you. Serverless architecture consisting mostly of Lambda, DynamoDB, 3rd party services and spaghetti code.

Technologies involved:

  • [Serverless][2]
  • DynamoDB, Lambda, S3, API Gateway
  • CloudFormation
  • VanillaJS Frontend (don't look at it)
  • Google Cloud Vision
  • Amazon Polly

Preparation

  • Ensure you have AWS configured to use the correct account region
  • Create a hosted zone for the domain you want to use
  • Ensure you have a log role for APIGateway set up, [see here][1]
  • Create a Facebook app, take note of app id
  • Create a Google app and API Key, take note of the key

Configuration

  • Set the following environment vars according to your project:
export PROJECT_NAME=$(basename $PWD)
export GOOGLE_API_KEY=<your api key>
export FB_APP_ID=<your app id>
export DOMAIN_NAME=<your domain>

Deployment

  • Using Makefile: make clean deploy
  • This will run the serverless deployment and publish website assets
  • For more info, see the Makefile

Uninstall

  • TODO

Future Work

  • Currently porting to [serverless][2]
  • See Devlog

1 2

About

Serverless demo application


Languages

Language:JavaScript 83.4%Language:HTML 8.8%Language:Makefile 6.0%Language:CSS 1.7%