Skip to content

PDF News generator with AWS Lambda, S3, DynamoDB

Notifications You must be signed in to change notification settings

machnicki/aws-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda PDF News generator

phnatomjs binary

Phantomjs binary is to heavy to keep it in git repo. Download phantomjs appropriate to your local environment. For AWS Lambda you will need linux version. Save it as /lambda/phantomjs.

Run locally with Localstack

  1. Go to newsapi.org, get apiKey for theirs API and set it as NEWS_API_KEY env variable on your machine
  2. Download Localstack from this repo
  3. cd {localstack DIR}
  4. TMPDIR=/private$TMPDIR LAMBDA_EXECUTOR=docker docker-compose up - you need to run Localstack via docker to have all services, TMPDIR=/private$TMPDIR prefix is necessary on Mac (as docker has problems with symbolic links)
  5. Another terminal: cd {this project DIR}
  6. npm install - postisntall will create DB, S3 and Lambda function
  7. npm run server - Express backend
  8. Another terminal: npm start - React webpack devserver

As a final result you should have 3 running processes in differents terminals (Localstack, Express API, React UI) and open application on http://localhost:3000

About

PDF News generator with AWS Lambda, S3, DynamoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published