Skip to content

HashirtheDev/student-repository

Repository files navigation

StudentDiscount - Pakistan's Student Discount Platform

StudentDiscount is a web application that offers exclusive discounts to students in Pakistan, similar to UniDays. The platform connects students with merchants offering discounts, making it easy to save money while studying.

Features

Student Features

  • Redeem Discounts: Generate unique codes to redeem at participating merchants
  • Authentication: Sign in with email/password, Apple ID, or Google
  • Wishlist: Save favorite discounts for later
  • Profile: Track savings and manage account details
  • Search: Find discounts by merchant, category, or keywords

Merchant Features

  • Dashboard & Analytics: Track redemptions and engagement
  • Discount Listing Creator: Easily create and publish new discount offerings
  • Redemption Verification: Verify and validate student discount codes
  • Listing Management: Manage active, upcoming, and expired listings

Tech Stack

  • Frontend: React.js with Next.js
  • Styling: Tailwind CSS
  • Charts: Chart.js with react-chartjs-2
  • UI Components: Headless UI, Heroicons
  • Forms: React Hook Form

Getting Started

Prerequisites

  • Node.js 14.x or later
  • npm or yarn

Installation

  1. Clone the repository
git clone https://github.com/yourusername/studentdiscount.git
cd studentdiscount
  1. Install dependencies
npm install
# or
yarn install
  1. Run the development server
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 in your browser

Building for Production

npm run build
npm run start
# or
yarn build
yarn start

Deployment to Netlify

This project is configured for easy deployment to Netlify using the netlify.toml configuration file.

Deploying to Netlify

  1. Push your code to a GitHub repository

  2. Connect your repository to Netlify:

    • Go to Netlify
    • Click "New site from Git"
    • Select GitHub and authorize Netlify
    • Select your repository
    • Netlify will automatically detect the build settings from netlify.toml
  3. Configure environment variables:

    • Add any required environment variables in the Netlify dashboard under Site settings > Build & deploy > Environment
  4. Deploy:

    • Netlify will automatically deploy your site and provide a URL
    • Each push to the main branch will trigger a new deployment

Project Structure

  • /app - Next.js 14 app directory
    • /components - Reusable UI components
    • /styles - Global CSS styles
    • /utils - Utility functions
  • /public - Static assets

License

This project is licensed under the ISC License.

About

Deployment 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages