Skip to content

A Javascript application that determines a user’s age based on a planet’s solar years.

Notifications You must be signed in to change notification settings

sn31/super-galactic-age-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Galactic Age Calculator - Skye Nguyen

Epicodus Independent Project - Advanced JavaScript Week 1 - 10/12/2018.

Description

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 is an application that determines a user’s age based on a planet’s solar years.

Test Driven Development Specs

  • Take in the user's DOB and find the user's age in Earth years.
  • The program will return the user's age in Mercury years. (A Mercury year is .24 Earth years.)
  • The program will return the user's age in Venus years. (A Venus year is .62 Earth years.)
  • The program will return the user's age in Mars years. (A Mars year is 1.88 Earth years.)
  • The program will return the user's age in Jupiter years. (A Jupiter year is 11.86 Earth years.)
  • The program will calculate the user’s life expectancy on each planet using the average life expectancy for their demographic on Earth.
  • The program will determines how many years a user has left to live on each planet.
  • If a user has already surpassed the average life expectancy, the program will return the number of years they have lived past the life expectancy.

Setup/Installation Requirements

  1. Clone this repository:
    $ git clone https://github.com/sn31/super-galactic-age-calculator.git
  1. Change into the work directory:
    $ cd super-galactic-age-calculator
  1. Install dependencies:
    $ npm install
  1. To build the program:
    $ npm run build
  1. To start the development server on localhost:8080:
    $ npm run start
  1. To run the tests using Karmin on localhost:9876:
    $ npm test

Known Bugs

Support and contact details

Please contact us at skye@dames.es for more information and/or feedback.

Technologies Used

  • JavaScript
  • npm
  • Karmin & Jasmine
  • Git
  • GitHub

License: MIT

Copyright (c) 2018 Skye Nguyen

About

A Javascript application that determines a user’s age based on a planet’s solar years.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published