A solar year lasts 365 days on planet Earth. However, the length of a solar year varies from planet to planet. For instance, a solar year on Mercury lasts 88 days. This application determines a user’s age based on a planet’s solar years.
First, clone this repo:
$ git clone https://github.com/AbdulYahya/galactic-age.git
From your terminal, cd into the directory you just cloned:
🚸 Path below is just an example an likely doesn't exist, unless of course you cloned into you desktop.
$ cd ~/Desktop/galactic-age
Install all npm and bower package:
$ npm install && bower install
Now, just run this gulp task:
$ gulp serve --prod
Improvements | Description |
---|---|
All planets | Rather than only the required planets, include all planets in our solar system. |
Birthday | Calculate a user's next birthday on each planet |
Accurate Life Expectancy | Calculate a user's expected lifespan by their sex, occupation, and country. |
Mayfly | Calculate how many mayfly lifespans the user has currently lived. |
Mayfly | Calculate how many more mayfly lifespans the user is expected to live. |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.