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
.
- Go to
newsapi.org
, get apiKey for theirs API and set it asNEWS_API_KEY
env variable on your machine - Download Localstack from this repo
cd {localstack DIR}
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)- Another terminal:
cd {this project DIR}
npm install
- postisntall will create DB, S3 and Lambda functionnpm run server
- Express backend- 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