|
|
7 месяцев назад | |
|---|---|---|
| .. | ||
| public | 7 месяцев назад | |
| .gitignore | 7 месяцев назад | |
| README.md | 7 месяцев назад | |
| index.js | 7 месяцев назад | |
| package.json | 7 месяцев назад | |
| pnpm-lock.yaml | 7 месяцев назад | |
Take and manage snapshots of the local storage and indexed DB.
First, shut down the dev server of the main app, as we don't want anything happening in the background while we do our dirty stuff here.
cd ./snapshot-server
pnpm start --port=8080 # Make sure the port matches your usual development port, don't specify if you want the 8080 default
Go to http://localhost:8080, then in chrome://inspect (or your browser's equivalent), just in case check if there is no active service worker, or any other workers for the localhost if there are any. Note that the workers may interfere with the read/write operations in the indexed DB.
Here you can take and manage snapshots of the local storage and indexed DB, that will be saved locally under ./snapshot-server/snapshots/**.
Be careful and don't spam any button, these operations can take some time so use this at your own risk. If you don't get the success message after clicking the Load button after at most a few seconds, it is likely there is a service worker running in the background.