halpk
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://ashryanio--8cfd874e369f11f0b6e49e149126039e.web.val.run
This Val Town project fetches the RSS feed from Astoria Tech's Subcurrent blog and displays a random blog post each time the page is loaded.
- Fetches the latest posts from the Subcurrent blog RSS feed
- Displays a random post each time the page is loaded
- Provides a "Get Another Post" button to load a different random post
- Shows a preview of the post content with a link to read the full article
- Responsive design that works on mobile and desktop
- Uses the
rss-parser
library to parse the RSS feed - Implements a CORS proxy to fetch the RSS feed from the client-side
- Handles loading states and error conditions
- Styled with custom CSS for a clean, readable interface
Simply visit the HTTP endpoint to view a random blog post. Click the "Get Another Post" button to load a different random post from the feed.