Coder Social home page Coder Social logo

wrunion / tdd-in-space-e20 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.36 MB

An app where you can enter your age and the name of a planet to see how old you are on that planet. Epicodus project.

Home Page: https://wrunion.github.io/tdd-in-space-e20/

JavaScript 55.20% HTML 41.42% CSS 3.38%

tdd-in-space-e20's Introduction

Space Age

Epicodus Independent Project, 3.5.2020

By Winter A. Runion

Description

Lets users enter their age and the name of a planet to see how "old" they are on that planet. Built to practice bundling with webpack and Jest unit testing.

demo of a form with fields for name, age, and gender. when submitted, it returns the string, 'You are 2.77 years old on Jupiter.'

Demo

App can be viewed at wrunion.github.io/tdd-in-space-e20

Specs

Spec Input Output
Should take a user's age, and return their age on a given planet User Input: Age: 10, Planet: Mercury Output: 41.67
Should determine the life expectancy of a user, based on demographic data User Input: Gender: female Output: 72
Should calculate life expectancy on a chosen planet User Input: Age: 25 Planet: Jupiter Output: 75.81
If user has surpassed planetary life expectancy, return a special message instead User Input: Age: 95, Planet: Mars Output: Congrats! You beat father time! You've lived 12.24 years longer than expected on Mars!

Project Requirements:

  • Business logic is thoroughly tested with Jest.
  • Each spec was committed before writing its corresponding code.
  • Project utilizes ES6 features including classes, let and const.
  • Dependencies are managed with npm.
  • Webpack is used to lint, bundle, and process code.

Contact

You're welcome to submit a pull request if you find any issues. You can reach me at [email protected].

License

This software is licensed under the MIT license.

Copyright (c) 2020 Winter A. Runion

tdd-in-space-e20's People

Contributors

wrunion 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.