To run this project -
- go to google cloud console and create a new project and enable gmail api in this project, and open a new OAuth 2.0 Client ID for desktop (this is important as web application type won't work), store this client id in a file named credentials.json. Also add the gmail id which you are going to run this software in the testing mail ids list.
- go to neon postgres and create a new database, insert the database URL wherever required in the code.
- generate a gemini 2.5 api key to be used in processing emails part and insert it in the code wherever required.
Running the code -
- Run this command in your terminal "python -m http.server 8000" to run the frontend.
- Run this command in your terminal "python run app.py" to run the backend.
- Open "http://localhost:8000/login.html" on your machine to visit the login page.
- Enter your mail id and allow google OAuth, then press on the button "Done" to view the dashboard but the information may not be visible on the dashboard the first time.
- Run the processing_emails.py and converting_to_jason.py files once each.
- Now redo commands 2 to 4 and the dashboard must be working.