The Credit Card Rewards is a comprehensive tool designed to help users optimize their credit card rewards across multiple banks and credit cards in India. This project aims to simplify the process of comparing rewards based on specific Merchant Category Codes (MCCs) and finding the best card for various spending patterns.
- Multi-bank support: Calculate rewards for cards from AMEX, Axis, AU, BOB, Canara, DBS, Federal, HDFC, HSBC, ICICI, IDFC First, IndusInd, Kotak, OneCard, RBL, SBI, SC, Yes.
- MCC-based calculations: Accurately calculate rewards based on specific Merchant Category Codes.
- User-friendly interface: Easy-to-use calculator with intuitive design.
- Dark mode support: Toggle between light and dark themes for comfortable viewing.
- Responsive design: Works seamlessly across desktop and mobile devices.
- Real-time calculations: Instantly see reward points or cashback for your transactions.
- International spend option: Calculate rewards for both local and international transactions.
CCReward is available on both iOS and Android platforms:
- Select your bank from the dropdown menu.
- Choose your specific credit card.
- (Optional) Select the Merchant Category Code (MCC) for your transaction.
- Enter the spent amount in INR.
- If applicable, choose between local or international spend.
- Click "Calculate Rewards" to see your earnings.
- React.js
- Material-UI (MUI)
- Next.js (inferred from the use of 'use client')
- Firebase (for authentication and data storage)
# Clone the repository
git clone https://github.com/aashishvanand/ccreward-web.git
# Navigate to the project directory
cd ccreward-web
# Install dependencies
npm install
# Run the development server
npm run dev
To run this project locally, you need to set up a Firebase project and configure it properly. Follow these steps:
- Go to the Firebase Console.
- Click on "Add project" and follow the setup wizard to create a new project.
- Once your project is created, click on the web icon (</>) to add a web app to your project.
- Register your app with a nickname (e.g., "credit-card-rewards-calculator").
- Copy the Firebase configuration object.
- In the Firebase Console, go to "Authentication" > "Sign-in method"
- Enable the following authentication methods:
- Google Sign-in
- Anonymous Authentication
- Configure the OAuth consent screen if required
- Go to "Firestore Database" in the Firebase Console
- Click "Create Database"
- Choose your preferred location and start in production mode
- In your project root, create a file named
.env.local
- Add the following environment variables, replacing the xxx with your actual Firebase configuration values:
NEXT_PUBLIC_FIREBASE_API_KEY=xxx
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=xxx
NEXT_PUBLIC_FIREBASE_PROJECT_ID=xxx
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=xxx
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=xxx
NEXT_PUBLIC_FIREBASE_APP_ID=xxx
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=xxx
- Save the
.env.local
file and ensure it's added to your.gitignore
- If you encounter authentication errors, ensure both Google Sign-in and Anonymous Authentication are enabled
- For database access issues, verify that Firestore is enabled and the security rules are properly configured
- Check that all environment variables are correctly set in your
.env.local
file
We welcome contributions to improve the Credit Card Rewards India Calculator! If you notice a missing bank or card, you can use the "Bank or Card Missing?" feature within the app to submit new information.
For more substantial contributions:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is available under a dual license - open source for non-commercial use and a commercial license for business use. See the LICENSE file for details.
Open Source License (for non-commercial use) The project is freely available for non-commercial use under the terms specified in the LICENSE file. This allows for personal use, educational purposes, and open source projects.
Commercial License For any commercial use of this project, including but not limited to using it as part of a business process or incorporating it into a commercial product or service, a separate commercial license is required. The fee for the commercial license varies based on the size of the company. Please contact the author for more information on commercial licensing.
Regardless of whether you are using the project under the open source or commercial license, if you use, modify, or distribute this project, please provide attribution by including the following:
- The name of the project: ccreward.app
- The project's GitHub repository URL: https://github.com/aashishvanand/ccreward-web
- The name of the original author: Aashish Vivekanand
Example attribution:
This project is based on the Credit Card Rewards (https://github.com/aashishvanand/ccreward-web) by Aashish Vivekanand.
Visit the live calculator: ccreward.app
Optimize your rewards and make the most of your credit card benefits with our comprehensive Credit Card Rewards Calculator!