/sunclock

A visualization of sunrise and sunset times at the user's current location

Primary LanguageJavaScriptMIT LicenseMIT

Welcome to the Sun Clock! This web application visualizes the proportion of daytime to nighttime at the web user's current location, on the current day of the year.

Getting Started

  1. git clone the repository
  2. npm install
  3. npm run dev

Run Tests

This repository has a jest suite for unit tests and a cypress suite for end to end testing.

  • npm t - run both jest and cypress tests
  • npm run jest - run jest
  • npm run jest-watch - run jest in watch mode
  • npm run cypress:open - run cypress tests in browser
  • npm run cypress:run - run cypress tests at command line