Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meteatamel/user-journeys-demo
https://github.com/meteatamel/user-journeys-demo
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/meteatamel/user-journeys-demo
- Owner: meteatamel
- License: apache-2.0
- Created: 2022-02-08T14:06:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-09T06:39:51.000Z (almost 3 years ago)
- Last Synced: 2024-12-27T05:41:55.885Z (7 days ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# User Journeys demo
This demo shows how to replay recorded user journeys of your website on Cloud Run jobs.
## Record your user journeys
1. Use [Chrome DevTools' Recorder](https://developer.chrome.com/docs/devtools/recorder/) to record critical user journeys for your publicly accessible website.
1. Export the replay using DevTools' Recorder [export feature](https://developer.chrome.com/docs/devtools/recorder/#edit-flows)
1. Save the exported `.js` file under the `journeys/` folder.## Before you begin
1. Install the [`gcloud` command line](https://cloud.google.com/sdk/docs/install).
1. Create a Google Cloud project.## Replaying on Google Cloud
Run `./replay_on_gcp.sh` to setup and run a Cloud Run job to replay critical
user journeys. See [replay_on_gcp.sh](replay_on_gcp.sh) for details.## Replaying every day
Run `./replay_every_day.sh` to create a Cloud Scheduler Job that will run the
Cloud Run Job every day. See [replay_every_day.sh](replay_every_day.sh) for
details.## Testing locally
The following steps assume you have `docker` installed on your local machine. If you don't proceed to the next section to deploy to Google Cloud.
Build with:
```sh
docker build . -t user-journeys-demo
```Run locally:
```sh
docker run --cap-add=SYS_ADMIN user-journeys-demo
```