Skip to content
Puppeteer x Prerender
JavaScript Dockerfile
Branch: master
Clone or download
Pull request Compare This branch is 4 commits ahead, 9 commits behind lesterchan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.editorconfig
.gcloudignore
.gitignore
Dockerfile
README.md
package-lock.json
package.json
process.yml

README.md

🦌 Rendeer

When Puppeteer meets Prerender

Lint

npm run lint

Run

npm run start

Deploy AWS Elastic Beanstalk

pip install awsebcli
eb init Rendeer -r ap-southeast-1 -p "arn:aws:elasticbeanstalk:ap-southeast-1::platform/Docker running on 64bit Amazon Linux/2.12.5"
eb deploy

Deploy Google Cloud Functions


sudo apt-get update && sudo apt-get install google-cloud-sdk
gcloud init
gcloud beta functions deploy rendeer --trigger-http --entry-point rendeer --region asia-northeast1 --runtime nodejs8 --memory 2048MB --timeout 65

Fetch URL Usage

http://localhost:3000/?fetch=https://lesterchan.net
http://localhost:3000/https://lesterchan.net

Clear Memcached Usage

http://localhost:3000/?clear=https://lesterchan.net
http://localhost:3000/clear/https://lesterchan.net

Credits

You can’t perform that action at this time.