corey-richardson / ArrowTrack

https://wakatime.com/@coreyrichardson/projects/ccfqhdmkoj?start=2023-10-01&end=2024-06-30
MIT License
0 stars 0 forks source link

Read/Write databases from file #17

Closed corey-richardson closed 6 months ago

corey-richardson commented 6 months ago

All projects must demonstrate the following:


JSON input/output is currently saved to the Browser localStorage attribute

A feature to allow file upload/download will better satisfy the coursework criteria. I believe the current implementation will still fall in line, but I want to be safe.

corey-richardson commented 6 months ago

Created js/file.js. This script handles the new form in the 'Add a New Item' section of the web application.

<div class="form-container" id="file-io">
    <form class="file-actions">
        <button id="download-button">Download Database</button>
        <input type="file" id="file-input-field" accept=".json">
        <button id="upload-button">Upload JSON</button>
    </form>
</div>
corey-richardson commented 6 months ago

Updated all documentation to reflect change. Merged branch file-upload-download into main.

All projects must demonstrate the following: