This project is built with:
- Vite - Next generation frontend tooling
- TypeScript - Typed JavaScript for better development experience
- React - JavaScript library for building user interfaces
- shadcn/ui - Reusable components built with Radix UI and Tailwind CSS
- Tailwind CSS - Utility-first CSS framework
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
This project includes Docker configuration for easy deployment.
docker build -t aparigraha-foundation .docker run -d -p 80:80 --name aparigraha-app aparigraha-foundationdocker-compose up -dCreate a .env file in the root directory with the following variables:
VITE_RAZORPAY_KEY_ID- Your Razorpay key IDVITE_RAZORPAY_KEY_SECRET- Your Razorpay key secret
npm run dev- Start the development servernpm run build- Build for productionnpm run build:dev- Build for developmentnpm run lint- Run ESLintnpm run preview- Preview the production build
This project includes a complete donation system integrated with Razorpay for processing one-time and recurring payments.
- One-time donations
- Recurring donations (AutoPay)
- Secure payment processing
- Responsive donation modal
- Subscription management
src/components/DonationModal.tsx- Main donation interfacesrc/lib/razorpay.ts- Razorpay service integration- Integrated into HeroSection, Navigation, and Footer components
- Webhook handling for payment notifications
- Subscription management
- Security verification for webhook requests
-
Create a Razorpay account at https://razorpay.com
-
Obtain your API keys from the Razorpay dashboard
-
Add your keys to the
.envfile:VITE_RAZORPAY_KEY_ID=your_key_id_here VITE_RAZORPAY_KEY_SECRET=your_key_secret_here -
Configure webhooks in your Razorpay dashboard to point to your server endpoint
You can build and deploy this project using the standard deployment process for Vite applications.