Get Me a Chai is a crowdfunding platform designed to help creators receive support through direct contributions from fans and followers. Inspired by “Buy Me a Coffee,” it allows users to fund creators through donations, ensuring creators can continue doing what they love with the support of their community.
- User authentication with GitHub using NextAuth.js
- Payment processing with Razorpay
- Profile management
- MongoDB Atlas for database
- Next.js
- MongoDB Atlas
- NextAuth.js
- Razorpay
- Node.js (>= 18.17.0)
- npm
-
Clone the repository:
git clone https://github.com/yourusername/get-me-a-chai.git cd get-me-a-chai
-
Install dependencies:
npm install
-
Set up environment variables:
Create a
.env.local
file in the root directory and add the following:NEXT_PUBLIC_URL=http://localhost:3000 DB_PASSWORD=your_mongodb_password GITHUB_CLIENT_ID=your_local_github_client_id GITHUB_CLIENT_SECRET=your_local_github_client_secret NEXTAUTH_URL=http://localhost:3000/api/auth MONGODB_URI=mongodb+srv://<username>:${DB_PASSWORD}@cluster0.mongodb.net/<dbname>?retryWrites=true&w=majority
-
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
The following environment variables need to be set:
NEXT_PUBLIC_URL
: The base URL of your application.DB_PASSWORD
: The password for your MongoDB Atlas database.GITHUB_CLIENT_ID
: The client ID for GitHub OAuth.GITHUB_CLIENT_SECRET
: The client secret for GitHub OAuth.NEXTAUTH_URL
: The URL for NextAuth.js authentication.MONGODB_URI
: The connection string for MongoDB Atlas.
Deploy the application to Vercel.
Set the following environment variables in the Vercel dashboard:
NEXT_PUBLIC_URL
: https://get-me-a-chai-theta.vercel.appDB_PASSWORD
: your_mongodb_passwordGITHUB_CLIENT_ID
: your_production_github_client_idGITHUB_CLIENT_SECRET
: your_production_github_client_secretNEXTAUTH_URL
: https://get-me-a-chai-theta.vercel.app/api/authMONGODB_URI
: mongodb+srv://:${DB_PASSWORD}@cluster0.mongodb.net/?retryWrites=true&w=majority
Visit our website: Get Me a Chai
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License.