The old gambler appears...
Build an email app on top of gmail API, using create-t3-app.
-
UI is completely up to you.
-
Be able to connect my gmail to the app.
-
Once connected, the app will sync all of the emails into the DB (use your personal email)
-
Make sure to sync emails as a cronjob (add logic in /api/____.ts and call it periodically from https://cron-job.org/en/)
-
For syncing new emails, you can implement it with gmail push notification feature (optional but highly recommended): https://developers.google.com/workspace/gmail/api/guides/push
-
The ideal syncing speed should be around 400 - 500 threads per minute
-
-
On the app, I can see all of my emails, I can click into an email and see it
-
Store the email metadata in DB
-
Get the email by querying using format 'raw', then use
nodemailerto parse it and get the proper HTML -
Store the email HTML in AWS s3
-
-
I can search across all the emails from the top bar
-
I can send, reply and forward emails from this app.
- Replied, forwarded emails should be properly threaded and displayed, like what you see in your gmail
-
For testing: set up a dummy email and send us credentials with your deployed app.