Skip to content

rjashby/Galactic-Age

Repository files navigation

Galactic Age Calculator

By Ryan Ashby

This application allows provides a person's given age and life expectancy on five planets in our solar system based upon user age and planet selection

Link to GitHub Repository

Technologies Used

  • VS Code Software
  • Git
  • Github
  • Google Chrome Browser
  • HTML
  • CSS
  • Markdown
  • Bootstrap
  • JavaScript
  • jQuery
  • Webpack
  • Jest
  • Babel
  • ES Lint

Description

This application asks a user to input their age, and planet of choice. Planetary choices include Earth, Mercury, Venus, Mars, and Jupiter.

The user submits the input via a form which populates an HTML div with the user's age on the given planet and life expectancy.

In the event that the user has already outlived their life expectancy, a congratulatory message will appear.

Setup/Installation Requirements

Cloning

  1. In order to utilize this page on your local machine, you will need to clone a copy of this repository

  2. Navigate to your desired directory in your command terminal and run "$ git clone https://github.com/rjashby/Galactic-Age"

  3. Should you wish to edit the code you cloned, you will need coding software. VS Code is an example of a free code editor, which can be downloaded at https://code.visualstudio.com/.

  4. Once your coding software is installed, open the folder of the cloned repository, which will contain the HTML files, the bootstrap.css framework, any images, audio, as well separate individual stylesheets for each HTML file.

Downloading

  1. In your browser, navigate to LINK, and click the green "Code" button, which will provide a drop down menu. Click on "Download ZIP" at the bottom of the menu, and save it to your desired location.

  2. Once downloaded, unzip and extract the files.

  3. Follow the steps above to view, edit, and open the files as needed.

Build the Environment and Run the Project

  1. You will need to run the command "npm install" in your terminal to download the appropriate node modules.

  2. You will then need to build the project using the command "npm run build".

  3. Once built, you can open dist/index.html in your browser.

  4. To run a server view of the project, you can type the command "npm start" to witness and inspect any changes you wish to make in real time.

Testing with Jest

  1. Once you run "npm install", you can run test with Jest, a testing suite to ensure that code is working properly.

  2. Specific tests are written and can be found in the "tests" folder.

  3. To test the code, simply run "npm test" in your terminal. Your terminal will show which tests are passing, which are failing, and the coverage of lines the tests encapsulate.

Known Bugs

  • No Known Bugs.

License

This project is licensed under the MIT License. Copyright (C) 2022 Ryan Ashby. All Rights Reserved.

MIT License

Copyright (c) 2022 Ryan Ashby.

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.

Return to Top

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published