• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Sujan62hsg

Sujan62hsg

Grabbyearn

Public
Like
Grabbyearn
Home
Code
4
backend
3
frontend
3
shared
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
README.md

₹25 Giveaway Website

A simple website that allows users to claim a free ₹25 giveaway. Includes an admin panel to manage giveaways and view user data.

Features

  • User-facing giveaway page
  • Form to collect user information for the giveaway
  • Admin panel with login
  • Admin dashboard to view and manage giveaway claims
  • SQLite database for data storage

Project Structure

├── backend/
│   ├── database/
│   │   ├── schema.ts       # Database schema
│   │   └── queries.ts      # Database queries
│   ├── routes/
│   │   ├── admin.ts        # Admin API routes
│   │   ├── giveaway.ts     # Giveaway API routes
│   │   └── auth.ts         # Authentication routes
│   └── index.ts            # Main backend entry point
├── frontend/
│   ├── components/
│   │   ├── AdminLogin.tsx  # Admin login component
│   │   ├── AdminPanel.tsx  # Admin panel component
│   │   ├── GiveawayForm.tsx # Giveaway form component
│   │   └── ThankYou.tsx    # Thank you page component
│   ├── index.html          # Main HTML template
│   └── index.tsx           # Frontend entry point
└── shared/
    └── types.ts            # Shared types

How to Use

  1. Visit the main page to claim your ₹25 giveaway
  2. Fill out the form with your details
  3. Admin can log in at the /admin route to manage giveaways

Admin Credentials

Default admin credentials:

  • Username: admin
  • Password: (Set via environment variable)
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.