Check.Email is an application that classifies emails using AI. It leverages the power of Supabase for authentication services and Google's Gmail API for email interactions. It uses Langchain/openai
for Classification.
Before you begin, ensure you have the following:
- A Supabase account
- A Google Cloud account
- Sign in to your Supabase account.
- Create a new project.
- From the project dashboard, you can find the URL and anon key. The URL is your Supabase project URL and the anon key is found under
Settings > API
.
- Go to the Google Cloud Console.
- Create a new project.
- Enable the Gmail API for your project.
- Create credentials for the Gmail API. Choose
OAuth client ID
as the credential type. - Set up the OAuth consent screen. Under
Application type
, chooseWeb application
. - Add your application's URIs under
Authorized JavaScript origins
andAuthorized redirect URIs
. - Setup restricted scope of gmail readonly in consent screen configuration.
- After you've set up the consent screen, you'll be provided with your
Client ID
andClient Secret
.
- Copy the
setup.env
file to a new file named.env
:
cp setup.env .env
- Open the
.env
file and fill in the environment variables with the keys obtained from Supabase and Google Cloud Console.
- Install all the dependencies:
npm install
- Run the application:
npm run dev
Now, you should be able to see the application running on your local server.