val-town-docs icon indicating copy to clipboard operation
val-town-docs copied to clipboard

Refactor code in "Guides / Saving data from a web page" article

Open Xkonti opened this issue 1 year ago • 5 comments

Code in the "Saving data from a web page" article is still using a val to store data. Code blocks should be refactored to use blob storage instead. Additionally all code should be presented as code blocks instead of embedding vals.

Xkonti avatar Dec 21 '23 15:12 Xkonti

@Xkonti could you work on this next please? Thanks!

stevekrouse avatar Jan 29 '24 15:01 stevekrouse

@stevekrouse On it!

Xkonti avatar Jan 29 '24 15:01 Xkonti

Additionally, the Run API is now deprecated. We need to swap it with something else.

andreterron avatar Feb 08 '24 00:02 andreterron

This is what I have planned for updating this one:

  1. Explain that blob storage will be used but sqlite can be used as well.
  2. Create API val that receives a comment and saves it to blob storage.
  3. Demonstrate how to get to the API endpoint from JS on the website.
  4. Demonstrate how to read from the blob storage and display it on the website.
  5. Use anything that supports HTTP to read from the blob storage.

Xkonti avatar Feb 08 '24 04:02 Xkonti

Could make two different guides, blob and sqlite, and contrast them, and user test them, and possibly even merge them both and explain the differences.

stevekrouse avatar Feb 12 '24 18:02 stevekrouse