A full-stack creator support platform where users can create personalized profiles, discover other creators, send payments through Razorpay, and receive supporter messages. Built with Next.js, NextAuth, MongoDB, Mongoose, Tailwind CSS, and Razorpay.
Get Me A Chai is a modern crowdfunding and patronage platform built with Next.js, and MongoDB. It allows content creators to receive direct support ("chai") from their followers. The platform implements a decentralized payment flow where creators can register their own Razorpay API credentials, ensuring contributions are sent directly to their personal Razorpay accounts.
Get Me A Chai helps creators monetize their content by letting fans buy them a "chai". The platform utilizes GitHub OAuth for creator sign-ins, maintains a public creator directory page (/network), and processes transactions using Razorpay. By integrating creators' personal Razorpay IDs and secrets, payments go straight to the destination account without platform-wide routing delays.
/[username]): Publicly accessible pages showcasing creator avatars, custom banner covers, and payment forms./network): A directory showing cards of all registered creators, complete with banners, names, and links to visit their pages.get_me_a_chai/
├── app/
│ ├── [username]/
│ │ └── page.js # Public profile and payment page
│ ├── actions/
│ │ └── useraction.js # Next.js Server Actions (initiate, fetchuser, updateProfile)
│ ├── api/
│ │ ├── auth/
│ │ │ └── [...nextauth]/
│ │ │ └── route.js # NextAuth.js configuration (GitHub provider & callbacks)
│ │ └── razorpay/
│ │ └── route.js # Razorpay signature validation and payment webhook
│ ├── components/
│ │ ├── Footer.js # Shared footer component
│ │ ├── Main.js # Landing page content component
│ │ ├── Navbar.js # Shared header navigation bar
│ │ ├── SessionWrapper.js # NextAuth SessionProvider wrapper
│ │ └── Userpage.js # Client-side payment form & contribution records
│ ├── db/
│ │ └── connectDb.js # Mongoose connection utility
│ ├── help/
│ │ └── page.js # Help static page placeholder
│ ├── login/
│ │ └── page.js # OAuth selection screen
│ ├── models/
│ │ ├── payment.js # Payment mongoose schema definition
│ │ └── user.js # User/Creator mongoose schema definition
│ ├── network/
│ │ └── page.js # Public directory listing all creators
│ ├── globals.css # CSS file containing tailwind directives
│ ├── layout.js # Root layout configuration with background gradient
│ └── page.js # Landing entry point (renders Main)
├── public/ # Static assets (images, gifs, icons)
├── jsconfig.json # Path aliases config
├── next.config.mjs # Next.js configuration
├── package.json # Dependencies and build scripts
└── postcss.config.mjs # PostCSS configuration
Clone the Repository:
git clone <repository-url>
cd get_me_a_chai
Install Dependencies:
npm install
Configure Environment Variables:
Create a .env.local file in the root directory and add the required environment variables (see Environment Variables).
Run the Development Server:
npm run dev
Access the Application: Open http://localhost:3000 in your web browser.
sequenceDiagram
participant User as Creator/User
participant App as Next.js Application
participant Auth as NextAuth.js Session
participant DB as MongoDB
participant GitHub as GitHub OAuth
User->>App: Clicks "Continue with Github"
App->>GitHub: Redirects user to GitHub authorization
GitHub->>User: Prompts credentials and access approval
User->>GitHub: Authorizes application
GitHub->>App: Callback with authorization token
App->>DB: Check if user exists by email
alt User is new
App->>DB: Create user entry with email, username (email prefix), avatar, and empty Razorpay details
end
App->>Auth: Sets session.user.name to database username
Auth->>User: Signs user in and redirects to profile
/login and clicks the GitHub option.signIn callback in route.js connects to MongoDB and searches foImprove Frontend design
https://github.com/dkprajapat1/Get-me-chai/issues/2
Labels: good first issue
No CONTRIBUTING document was found. Please check the README and open issues.