Public
Like
Grabbyearn
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.
A simple website that allows users to claim a free ₹25 giveaway. Includes an admin panel to manage giveaways and view user data.
- 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
├── 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
- Visit the main page to claim your ₹25 giveaway
- Fill out the form with your details
- Admin can log in at the /admin route to manage giveaways
Default admin credentials:
- Username: admin
- Password: (Set via environment variable)