₹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)