Avatar

janpaul123

Joined July 18, 2022
Public vals
300
janpaul123 avatar
janpaul123
valle_tmp_880820168898077728093213546584606
HTTP
// Initialize sample stories and store them in blob storage
0
janpaul123 avatar
janpaul123
valle_tmp_26658746570535136802306869503814
HTTP
An interactive, runnable TypeScript val by janpaul123
0
janpaul123 avatar
janpaul123
valle_tmp_701816702132716405607952805626981
HTTP
// Initialize sample stories and store them in blob storage
0
janpaul123 avatar
janpaul123
valle_tmp_87778475813607539720320402884255
HTTP
// Unique key for blob storage
0
janpaul123 avatar
janpaul123
valle_tmp_1383961774625823777944450091493644
HTTP
// This code will create a simple Hacker News clone with 30 fake sample stories,
0
janpaul123 avatar
janpaul123
valle_tmp_90775096713594030038814365860220246
HTTP
// Define interface for Story object
0
janpaul123 avatar
janpaul123
valle_tmp_069034869725444597641897580363524
HTTP
// Define the key for blob storage
0
janpaul123 avatar
janpaul123
valle_tmp_115772121902645334646172151872623
HTTP
* This val creates a simple hacker news clone with 30 fake sample stories. * It uses blob storage to store story data, including the ability to submit * new stories and upvote existing stories.
0
janpaul123 avatar
janpaul123
valle_tmp_86669542161959955391274329473221
HTTP
// Function to initialize the stories in blob storage
0
janpaul123 avatar
janpaul123
valle_tmp_88140331236158369280490149661851
HTTP
// Initialize blob with an empty array if it doesn't exist
0
janpaul123 avatar
janpaul123
valle_tmp_0849921550869434716277180134862967
HTTP
// Import the required modules
0
janpaul123 avatar
janpaul123
valle_tmp_41699613582383728637218416331187
HTTP
// Initialize stories with some fake sample data
0
janpaul123 avatar
janpaul123
valle_tmp_3373497323659926417371153829721253
HTTP
// Retrieve stories data from blob storage on server start
0
janpaul123 avatar
janpaul123
valle_tmp_893740469510018430011448967223986
HTTP
// Initialize stories with sample data
0
janpaul123 avatar
janpaul123
valle_tmp_18509498710822885445406823160177
HTTP
This code sets up a simple comment box system. * It leverages Deno's blob storage for persistence, * and renders an HTML form to accept new comments, * while displaying all existing comments. * Tailwind CSS is used for styling.
0
janpaul123 avatar
janpaul123
valle_tmp_941646362281053813810573876504528
HTTP
This code sets up a styled comment box system using Tailwind CSS. * It leverages Deno's blob storage for persistence, * and renders an HTML form to accept new comments, * while displaying all existing comments.
0