Single-page-app email client using JavaScript and Django API's.
View more screenshots.
- clone or download the repo and
cdinto the directory. - Run
python manage.py makemigrations mailto make migrations for themailapp. - Run
python manage.py migrateto apply migrations to your database. - Run
python manage.py runserverto run the server in your local machine.
- Single page responsive mail client.
- User can register and login to the website.
- After logging in user can send and receive emails.
Inbox,Compose,Sent, andArchiveare the views that are available.- In
Inboxmails can be:- Viewed fully.
- Archived.
- Replied to.
- Marked as read automatically on opening mail.
- In
Sentmails can be:- Viewed fully.
- Replied to.
- In
Archivemails can be:- Unarchived.
GET /emails/<str:mailbox>: Sending aGETrequest to/emails/<mailbox>where<mailbox>is eitherinbox,sent, orarchivewill return back to you (in JSON form) a list of all emails in that mailbox, in reverse chronological order.GET /emails/<int:email_id>: Sending aGETrequest to/emails/email_idwhereemail_idis an integer id for an email will return a JSON representation of the email if it exists.POST /emails: To send an email, aPOSTrequest to the/emailsroute is made. This requires three pieces of data to be submitted: arecipientsvalue (a comma-separated string of all users to send an email to), asubjectstring, and abodystring.PUT /emails/<int:email_id>: SendingPUTrequest to/emails/email_idwhereemail_idis the id of the email you’re trying to modify is used to modify the status of each email.
