Skip to content

swarnanagidi30/sync-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync-Clock CI

Synchronized Clocks

This is an UI project which has two clocks and which has been synchronized means while editing the time of one clock will update the other clock's time .


Table of Contents


Installation

Prerequisite

Setup

now install npm packages

$ yarn install

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

$ yarn start

Builds the app for production to the build folder.

$ yarn build

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

$ yarn start

Testing

  • added UI test cases for shallow rendering
  • added snapshot testing

Features

Analog clock

  • show time in cirular dail
  • hours, minites and seconds hands position are calculated and corresponding degeres for the hands are calculated.

Digital clock

  • show time in digital foramt in HH:MM:SS
  • has clock edit support

Clock Editing

  • each clock will show setting on mouse over
  • on clicking the setting shows setting inline popup
  • from the popup we can edit the time
  • once the time is edited and clicked on ok it will updates both the clock

Roadmap

  • cleanup code and can have shared code
  • enchance UI more fluid and responsive

License

License