DEV Community


Discussion on: LocalPen: Saving/Exporting Code

hatemhosny profile image
Hatem Hosny Author

saving to localStorage uses the Web Storage API to save to the browser's localStorage.

You can open a previously saved project from the settings menu > open.

This is a screenshot for the "Saved Projects" screen:
open LocalPen

On the other hand, if you prefer to download a project and save it to your device (for later import or to share), you can export it (settings menu > Export)

different export options are outlined in the post

You may then import exported JSON on the same or a different device from (settings menu > Import)

check this post for importing code (prefilling the editors)

I hope this was helpful.
Please do not hesitate to ask about anything else or suggest new features.

krrishdhaneja profile image
Krrish Dhaneja

Thanks alot, hey I am just getting started with js, and this project is just soooo AWESOME!!!(I am so excited to contribute as soon as I learn js!!)to start with, so where can I start off from, for eg. Are the important or main files stored in src folder?

Thread Thread
hatemhosny profile image
Hatem Hosny Author

wow! that's very nice. I can't wait till I see your first pull request in the repo. 😊

Currently, the project is under heavy development with relatively frequent code refactoring. Once it is more stable, I plan to provide a proper contribution guide and formal API documentation. So, stay tuned.

Meanwhile, the main logic starts from here.

If you have any questions regarding the code or design decisions feel free to open an issue and we can discuss there.