Public
Like
MaseWakwaap
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://MaseWakwa--3c81aff03fa211f0a03376b3cceeab13.web.val.run
A Val Town application that alerts followers when new beats, sample packs, or songs are released.
- Release Management: Add new music releases (beats, sample packs, songs)
- Follower Notifications: Email alerts to subscribers when new content drops
- Admin Dashboard: Manage releases and view follower statistics
- Public Landing: Allow fans to subscribe for notifications
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ admin.ts # Admin dashboard routes
β β βββ releases.ts # Release management routes
β β βββ subscribers.ts # Subscriber management routes
β βββ index.ts # Main Hono app entry point
βββ frontend/
β βββ components/
β β βββ App.tsx # Main React app
β β βββ AdminDashboard.tsx
β β βββ ReleaseForm.tsx
β β βββ SubscribeForm.tsx
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
-
Set environment variables:
ADMIN_PASSWORD
: Password for admin accessARTIST_NAME
: Your artist nameARTIST_EMAIL
: Your email for notifications
-
The database will be automatically initialized on first run.
- Public: Visit
/
to subscribe for notifications - Admin: Visit
/admin
to manage releases and view subscribers - API: RESTful endpoints for releases and subscribers
GET /api/releases
- Get all releasesPOST /api/releases
- Create new release (admin)POST /api/subscribe
- Subscribe for notificationsGET /api/subscribers
- Get subscriber count (admin)