- Install the Google Cloud SDK: https://cloud.google.com/sdk/docs/
- Create an App Engine project for testing: https://console.cloud.google.com/project
- Authenticate with Google Cloud:
gcloud init
- Create a config.json file to override config defaults (i.e. App Engine project ID, Cloud Storage bucket, etc).
- Note that the Cloud storage bucket has to be publically readable (Add read permissions for the 'allUsers' user in https://console.cloud.google.com/storage).
- Install OpenSSL
- Generate a self-signed SSL certificate for localhost testing (leave prompts at defaults):
mkdir sslcert
openssl genrsa -des3 -passout pass:x -out sslcert/server.pass.key 2048
openssl rsa -passin pass:x -in sslcert/server.pass.key -out sslcert/server.key
rm sslcert/server.pass.key
openssl req -new -key sslcert/server.key -out sslcert/server.csr
openssl x509 -req -sha256 -days 365 -in sslcert/server.csr -signkey sslcert/server.key -out sslcert/server.crt
- Install dependencies:
npm install
npm start
- Run Chrome:
./chrome --allow-insecure-localhost \
--enable-reflector-for-recipient=https://localhost:8080/reflector/upload \
https://localhost:8080/reflector/test
- For testing only, to allow insecure content in iframe, use flag
--allow-running-insecure-content