stock_forecast
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://sultanoloyede--6c601c2a39bc11f09efc9e149126039e.web.val.run
A beautiful, responsive website that fetches probability data from an external API and displays it in an aesthetic manner.
- π― Fetches data from
https://2275-65-95-228-32.ngrok-free.app/predict
- π Extracts probability value and converts to percentage (multiplies by 100)
- π¨ Beautiful gradient design with animated elements
- π± Fully responsive for mobile and desktop
- π Auto-refresh every 30 seconds
- β‘ Real-time loading and error states
- π Smooth animations and transitions
βββ backend/
β βββ index.ts # Hono API server with probability endpoint
βββ frontend/
β βββ index.html # Main website with aesthetic display
βββ README.md
GET /
- Main websiteGET /api/probability
- Fetches and processes probability data
- Animated Circle: Pulsing gradient circle displaying the percentage
- Loading States: Elegant spinner while fetching data
- Error Handling: User-friendly error messages with retry functionality
- Auto-refresh: Updates data every 30 seconds automatically
- Responsive: Works perfectly on all device sizes
- Backend: Hono framework for API handling
- Frontend: Vanilla HTML/CSS/JS with TailwindCSS
- Styling: Custom CSS animations + Tailwind utilities
- Fonts: Google Fonts (Inter)