Giter Club home page Giter Club logo

galactic-age-calc's Introduction

Super Galactic Age Calculator

Independent project for Epicodus [11.13.20]
by Taylor Delph

Description:

Calculate your age and life expectancy on 5 different planets. This project is an exercise in setting up a dev environment from scratch. It also focuses on using Test Driven Development to build business logic piece by piece.

Setup and installation

Software Reqirements

Instructions:

copy and paste these following commands into your terminal

  1. To install homebrew:
  •    $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    
  1. To instal git:
  •    $ brew install git
    
  1. To install Node.js;
  •    $ brew install node
    
  1. Clone this project's repo
  •    $ cd ~/Desktop
    
  •    $ git clone https://github.com/taylulz/galactic-age-calc.git
    
  1. Find the newly downloaded galactic-age-calc folder on your desktop and drag and drop it into VS Code

  2. Open terminal in VS Code (in the top navigation bar choose Terminal->New Terminal). Run the following in the terminal, which will launch the project in your web browser:

  •    $ npm install
    
  •    $ npm run start
    

Specifications

Test Input Output
Describe Calculator:
Correctly create new object with user's age age = 30 expect 30
Correctly calculate Mercury age age = 30 expect 125
Correctly calculate Venus age age = 30 expect 48
Correctly calculate Mars age age = 30 expect 16
Correctly calculate Jupiter age age = 30 expect 3
Correctly take in user's earth life expectancy age = 30, expectancy = 80 expect age = 30, expectancy = 80
Correctly calculate number of years left to live age = 30 expectancy = 80 expect 50
Correctly calculate earth life expectancy to Mercury years expectancy = 80 expect 333
Correctly calculate earth life expectancy to Venus years expectancy = 80 expect 129
Correctly calculate earth life expectancy to Mars years expectancy = 80 expect 43
Correctly calculate earth life expectancy to Jupiter years expectancy = 80 expect 7
Correctly calculate years left to live on Mercury expectancy = 80 expect 208
Correctly calculate years left to live on Venus expectancy = 80 expect 81
Correctly calculate years left to live on Mars expectancy = 80 expect 27
Correctly calculate years left to live on Jupiter expectancy = 80 expect 4
Correctly calculate number of years lived past earth life expectancy age = 90, expectancy = 80 expect 10

Technologies Used

  • VS Code

  • GitBash

  • npm

  • Node.js

  • ESLint

  • Babel

  • webpack

  • Jest

  • Popper.js

  • Bootstrap

  • HTML

  • CSS

Known Bugs

No known bugs at this time

Legal

Copyright (c) 2020 Taylor Delph

This website is licensed under the MIT license.

galactic-age-calc's People

Contributors

jd-fj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.