A tool to fetch data from browser local storage and merge it with the main SDLC workflow JSON file.
This tool helps you:
- Fetch data from a local HTML file's browser storage
- Merge that data with the main
sdlc-workflow.json
file - Keep your workflow data synchronized
fetch-local-browser-data.html
- Web interface to fetch data from browser storagefetch-browser-data.js
- Node.js script to merge dataauto-sync.js
- Auto-sync script with watch modesdlc-workflow.json
- Main workflow data filepackage.json
- Project configuration
- Start the local server:
npm run serve
ornode server.js
- Open your browser and go to:
http://localhost:5000/sdlc-workflow.html
- The page will automatically load data from
sdlc-workflow.json
- Make changes to the workflow data
- Changes are automatically saved to the JSON file via the server
- Start the local server:
npm run serve
ornode server.js
- Open
http://localhost:5000/fetch-local-browser-data.html
in your browser - Open the local SDLC file:
file:///Users/Szymon/Documents/PROJEKTY/Development-Livecycle/sdlc_miro_diagram-v1.html
- Add or modify data in the workflow
- Return to the web interface and click "Fetch from Local Storage"
- Review the data and click "Download for Merge"
- Run the merge script:
node fetch-browser-data.js
# Fetch and merge data
npm run fetch-data
# Auto-sync with watch mode
npm run sync-watch
# Start auto-sync
npm start
# Merge data from downloaded file
node fetch-browser-data.js
# Auto-sync with watch mode
node auto-sync.js --watch
The sdlc-workflow.json
file contains:
- metadata: Version, timestamps, and counts
- phases: Each phase contains:
- Basic info (name, description, user story)
- Ownership (roles responsible)
- Categories (deliverables, tools, conductors)
- Data Source: Local HTML file with browser storage
- Fetch: Use web interface to extract data
- Download: Save as
sdlc-workflow-date.json
- Merge: Run script to merge with main JSON file
- Sync: Optional auto-sync for continuous updates
- Node.js >= 14.0.0
- Modern web browser with localStorage support
- Access to the local SDLC file
- Ensure the local file path is correct in the HTML file
- Check that browser storage contains data before fetching
- Verify file permissions for read/write operations
- Use watch mode for automatic synchronization