val-town-docs
val-town-docs copied to clipboard
Refactor code in "Guides / Saving data from a web page" article
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 could you work on this next please? Thanks!
@stevekrouse On it!
Additionally, the Run API is now deprecated. We need to swap it with something else.
This is what I have planned for updating this one:
- Explain that blob storage will be used but sqlite can be used as well.
- Create API val that receives a comment and saves it to blob storage.
- Demonstrate how to get to the API endpoint from JS on the website.
- Demonstrate how to read from the blob storage and display it on the website.
- Use anything that supports HTTP to read from the blob storage.
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.