DealFinder is a web application that simplifies complex Terms and Conditions, making them easy for users to understand. The app summarizes, analyzes, and assesses the trustworthiness of deals, promotions, and subscriptions, helping users make informed decisions before committing to agreements.
This project is built with Next.js and includes authentication, an interactive Terms and Conditions analyzer, and user-friendly navigation.
- Summarize: Provides a simplified summary of Terms and Conditions.
- Analyze: Highlights potential risks, hidden fees, and data-sharing practices.
- Trust Assessment: Assesses the overall trustworthiness of the terms, indicating whether they’re "good to go" or "bad to proceed."
- Authentication: Secure login and registration system using Firebase.
- User-Friendly Interface: Intuitive navigation with a responsive layout.
To get a local copy up and running, follow these steps.
Ensure you have Node.js and npm installed.
-
Clone the repository:
git clone https://github.com/your-username/dealfinder.git cd dealfinder
-
Install dependencies:
npm install # or yarn install
-
Create a
.env.local
file in the root of your project and add the required environment variables (see below for details). -
Start the development server:
npm run dev # or yarn dev
-
Open http://localhost:3000 in your browser to view the app.
Add the following environment variables in your .env.local
file:
# Firebase Config
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_firebase_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_firebase_app_id
# Google Generative AI API (Gemini API)
GEMINI_API_KEY=your_gemini_api_key
- Summarize Terms:
/api/gemini
with aPOST
request. Type:summarize
- Analyze Terms:
/api/gemini
with aPOST
request. Type:analyze
- Trust Assessment:
/api/gemini
with aPOST
request. Type:trust
- Endpoint:
/api/gemini
- Method:
POST
- Body:
{ "input": "Your terms and conditions text here", "type": "summarize" | "analyze" | "trust" }
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - detailed documentation on Next.js features.
- Learn Next.js - interactive tutorial for Next.js.
- Firebase Documentation - comprehensive guide for Firebase services.
- Google Generative AI API - information about the Google Generative AI API (Gemini API).
The easiest way to deploy DealFinder is to use Vercel, the platform created by the team behind Next.js.
- Push your project to a GitHub or GitLab repository.
- Link your repository to Vercel.
- Add the environment variables to your Vercel project settings.
- Deploy!
For more details, check out the Next.js deployment documentation.
This project is licensed under the MIT License. See the LICENSE file for more information.