rubenmate / draw-entity-relation

A web application developed as my final project for the Computer Engineering Degree. It allows users to model entity-relationship diagrams and export them to SQL scripts after validation.
https://draw-entity-relation.vercel.app
0 stars 1 forks source link

Feature: Save the diagram on localStorage, add export/import diagram #29

Closed rubenmate closed 1 week ago

rubenmate commented 1 month ago

Background:

The app state is volatile, when the page is refreshed it will start over.

Goal:

Implement a feature that saves the diagram to localhost so when the page is refreshed it will check if there is something there and load it. This allows to import diagrams imported as JSON.

Proposed Solution:

Save the diagram structure in localhost. When the component is mounted check if there is a diagram saved and load it. Add export/import buttons to export/import the diagram as JSON.

rubenmate commented 1 week ago

I have also added buttons to export/import the diagram as JSON.