FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
Winner_create
Winner_createZap
Public
Like
Zap
Home
Code
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/19/2025
Viewing readonly version of main branch: v1
View latest version
README.md

Sports Betting App

A full-stack sports betting application built on Val Town.

Features

  • User authentication (register, login)
  • Sports events browsing and betting
  • Wallet management (deposit and withdraw funds)
  • Bet history and tracking
  • Real-time odds updates

Project Structure

  • /backend - Server-side code (Hono API, SQLite database)
    • /database - Database setup and queries
    • /routes - API endpoints
  • /frontend - Client-side code (React, TailwindCSS)
    • /components - React components
  • /shared - Shared types and utilities

Technologies

  • Backend: Hono, SQLite
  • Frontend: React, TailwindCSS
  • Authentication: JWT
  • Data Storage: SQLite

API Endpoints

  • Auth: /api/auth/register, /api/auth/login
  • User: /api/user/profile, /api/user/balance
  • Transactions: /api/transactions/deposit, /api/transactions/withdraw
  • Sports: /api/sports/list, /api/sports/events
  • Bets: /api/bets/place, /api/bets/list, /api/bets/history
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.