ClientSideMailHost is a web application that allows users to fetch, view, and classify emails from their Gmail accounts using Google OAuth2.0 and OpenAI's API. This project is designed to enhance email management by automatically categorizing emails into different classes such as important, social, and promotional.
- Google OAuth Authentication: Securely log in with your Google account to access Gmail data.
- Fetch Emails: Retrieve emails from your Gmail account.
- Email Classification: Utilize OpenAI's API to classify emails into different categories.
- Responsive UI: User-friendly interface optimized for both desktop and mobile devices.
- Dashboard: View and manage your classified emails in a clean and organized dashboard.
The application is hosted on Vercel. You can access it here.
- Node.js and npm installed.
- Google Cloud project with Gmail API enabled.
- OpenAI API key.
-
Clone the repository:
git clone https://github.com/manlikeNacho/ClientSideMailHost.git cd ClientSideMailHost
-
Install dependencies:
npm install
-
Environment Variables: Create a .env file in the root directory and add the following
GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=your-nextauth-secret
-
Run the development server:
npm run dev
-
Open your browser: Navigate to http://localhost:3000 to view the application.
We welcome contributions to enhance ClientSideMailHost. Please fork the repository and submit pull requests for any features or bug fixes.