Full Stack Developer Task Description
Full Stack Developer Task Description
Objective:
Develop a chat-style email interface using Next.js, NextUI, and InstantDB. The interface
should group and display email conversations in a chat format, and allow users to send new
emails seamlessly. The backend should handle data formatting and ensure emails are sent with
the correct subject, recipient, and other metadata.
Key Description
1. Frontend Development
○ Chat Interface:
■ Build a responsive and intuitive interface using Next.js and NextUI to
display emails in a conversational, chat-like format.
■ Group emails by their subject, incorporating replies (Re: tags) and
chronological order.
■ Highlight key details, including sender/receiver names (from_name),
email snippets, and timestamps.
○ Message Composition:
■ Design a user-friendly input box for composing and sending new
messages.
■ Ensure users can view the grouped conversation while drafting their reply.
2. Backend Development
○ Data Handling:
■ Use InstantDB to store and retrieve email data efficiently.
■ Implement logic to group emails by subject and organize them
chronologically using the date field.
■ Handle edge cases like emails with missing subject or nested replies
(Re: Re: tags).
○ Email Sending:
■ Develop an API endpoint to handle new email submissions.
■ Format and send emails with the correct metadata, including:
■ Subject: Use the original subject with the appropriate Re: prefix.
■ To: Populate the recipient’s email address (from or other required
field).
■ Body: Include the message text while appending thread history if
necessary.
3. Email Grouping Instructions
Expected Deliverables
Key Links