8000 GitHub - aharmon413/moon-project: A React app for viewing current and future moon phase information
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aharmon413/moon-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Today's Moon 🌙 S3 Deploy status

A React app for viewing current and future moon phase information

View live at moons.amberharmon.com

moons.amberharmon.com

About

This project is a combination of my love of programming and all things witchy and magical.

For any given moment, the app displays:

  • The current moon phase, along with the date and time
  • A brief description of the themes of the current phase
  • A few suggestions for activities that go along with the themes of the current phase
  • Both the previous and next major moon phases, along with the zodiac sign the moon was in and will be in (a new moon or full moon is considered a 'major moon phase' here)

The current moon phase is calculated using a simple formula by Ben Daglish. It takes the difference between the current date and a known new moon date (January 7, 1970) for a value between 1 and 30. Each moon phase is associated with a numerical range.

The major moon phases, specifically the associated zodiac signs, were a little more complicated. As it turns out, astrology calculations are very complex! I couldn't find an API that fit my needs and stayed within the scope of my ability and this project, so I ended up compiling a few years' worth of moon phase data into a JSON file.

I also used this project as an opportunity to learn about code testing, utilizing the React Testing Library and Jest to write a few simple tests.

Resources

About

A React app for viewing current and future moon phase information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0