A visualization of sunrise and sunset times at the user's current location
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.storybook
components
cypress
data
pages
script
.babelrc
.gitignore
.prettierignore
.prettierrc
CNAME
README.md
cypress.json
favicon.ico
jestSetup.js
next.config.js
package-lock.json
package.json

README.md

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