https://github.com/lehcode/pagespeed
https://github.com/lehcode/pagespeed
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lehcode/pagespeed
- Owner: lehcode
- Created: 2020-11-02T05:11:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T05:29:55.000Z (about 5 years ago)
- Last Synced: 2024-04-14T22:18:54.167Z (over 1 year ago)
- Language: TypeScript
- Size: 144 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google PageSpeed example
Displays PageSpeed results for predefined set of pages.
### Prepare
Copy `.env.dist` to `.env` and add PageSpeed API key to it.
Add AWS account secrets in `~/.aws/credentials` with following content:
```
[default]
aws_access_key_id =
aws_secret_access_key =
```
## Run tests
1. Use `yarn install` to install dependencies.
2. Run `yarn test` to run tests
## Fetch data
1. Run local endpoint using Serverless machine with `yarn local` in other shell.
2. Use endpint URL displayed upon Step 1 to fetch live metrics in JSON format.