GmailLoader is a web application designed to fetch and classify emails from a user's Gmail account using Google's Gmail API and OpenAI's classification capabilities. This application aims to provide a seamless way to manage and categorize emails based on their content and importance.
Clone the repository:
git clone https://github.com/manlikeNacho/gmailLoader.git
cd gmailLoader
Install dependencies:
npm install
3. 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 (openssl key)
EXPRESS_SESSION_SECRET=secret
GOOGLE_CLIENT_CALLBACK_URI=your-callbackUri-from-google-console
JWT_PRIVATE_KEY=jwt-key
WINSTON_LOG_LEVEL=info
npm run dev
Click on the sign-in button and authenticate using your Google account. 2. Fetch Emails:
Once authenticated, the application will automatically fetch and display emails from your Gmail account. 3. Classify Emails:
Click on the "Classify" button to categorize emails. The classification results will be displayed alongside each email. 4. View Classified Emails:
View and manage classified emails from the user dashboard.
We welcome contributions to enhance GmailLoader. Please fork the repository and submit pull requests for any features or bug fixes.
The fullstack app files(client&Server) can be found in the default branch.