Coder Social home page Coder Social logo

gauravbehere / js-mailbox Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 6.0 419 KB

Gmail like mailbox demo using JavaScript & local storage

Home Page: https://gauravbehere.github.io/JS-Mailbox/index.html

License: Apache License 2.0

JavaScript 63.14% CSS 20.97% HTML 15.89%
sahajsoft javascript interview-questions email-client localstorage machine-coding javascript-interview-questions email gmail

js-mailbox's Introduction

JavaScript Mailbox Demo


Interview question

Implement a Gmail like email client using localstorage & JavaScript.

Problem Statement

  • Using the attached screen shot for an admin dashboard, please construct a simple UI that exhibits functionalities listed below in relevant section. Following are few guidelines.
  • You are free to use Vanilla javascript / JS Framework of your choice
  • The UI need not have a server back end and you can use Mock Data with CRUD operations on HTML5 Local Storage
  • Feel free to select an alternative color theme and assets.
  • Please provide Test Coverage
  • For the functionality requested please see the images attached.
  • A login page with a simple form where the user can enter an email and password as credential. If the credential matches the mock data, the user gets redirected to the Dashboard Page with a list of Emails on his Inbox(Mock Data)
  • Compose mail should open a pop up that allows you to write a simple mail with To and CC fields, subject and a body
  • Upon submission, the email should be stored in local storage and should appear in the list of Sent Emails
  • If we logout and login with the credentials(email & password) of the user to whom the email was sent, he should be able to see the new email at top of the list on his Inbox
  • The user can click on an email to read it and the numbers on unread emails(Mail icon at top right corner of the header) should get updated based on the unread emails on Inbox
  • The user should be able to select and delete the emails from his Inbox
  • The menu bar on left can exist in a collapsed or an expanded state as demonstrated in the screenshot
  • Rest of the screen can remain non-functional and static as long as look and feel can match

Demo

https://gauravbehere.github.io/JS-Mailbox/


Steps to run this project

  • Extract the contents into a folder
  • Go to root of the folder
  • run npm i
  • run npm start
  • navigate to http://localhost:5000/
  • You will be taken to dummy login screen, use one of these users to login
  • Use one of these credentials to login
username password
[email protected] iamadmin
[email protected] iamhr
[email protected] iamuser
[email protected] iamabc

Running tests

  • npm run test
  • to check coverage, check icov-report/index.html in the coverage folder generated
  • Coverage snapshot

js-mailbox's People

Contributors

gauravbehere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.