Open main menu
Home
Random
Log in
Settings
About The Portal Wiki
Disclaimers
The Portal Wiki
Search
Editing
Postprint
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Design == What's a simple way to collaboratively build a timeline or series of blogposts? Host the data as a plaintext file in a accessible git repository. Use a 'website' to distribute client side code (react) to query and display the data as a website. 1 Data concerns βββββββββββββββ <https://pc.net/helpcenter/answers/how_much_text_in_one_megabyte> 500 pages of 2000 characters is about 1 megabyte 10 years of blogposts, 60 posts a year, 500 words per posts about 1 megabyte β’ website main pages β’ bbc.com: 5.90 MB β’ npr.com: 6.95 MB β’ reddit.com: 17.07 MB β’ cnn.com: 14.00 MB β’ twitter blank login page: 3.34 MB β’ twitter user page 3.99 MB 2 What does this mean βββββββββββββββββββββ β’ You can store an entire blog or timeline in a plaintext file β’ This file can be hosted in a github repo β’ The client can cache the file and only update when the git repo reports a different hash for the file 3 How to get the data βββββββββββββββββββββ β’ REST api docs: <https://docs.github.com/en/rest/reference/repos#get-repository-content> 3.1 View root level stuff βββββββββββββββββββββββββ GET <https://api.github.com/repos/hyferg/time/contents> β’ Accept: application/vnd.github.v3+json 3.2 View a raw document βββββββββββββββββββββββ GET <https://api.github.com/repos/hyferg/time/contents/aaron-swartz.md> headers Accept: application/vnd.github.v3.raw
Summary:
Please note that all contributions to The Portal Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
The Portal:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)