Git Product home page Git Product logo

phone-generator's Introduction

Test Coverage

Random Phone Generator

Node application that Generates Random Phone Numbers.

  • It Writes the numbers in 3 files :-
    • 1 - phoneNumbers.json, for all generated numbers.

    • 2 - phoneNumbers-asc.json, for all generated numbers in ascending order based on phone number value.

    • 3 - phoneNumbers-desc.json, for all generated numbers in descending order based on phone number value.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

  • npm or yarn, npm comes along with the installation of node which can be installed using using brew install node on a mac for other platforms follow this - Guide.

Install

How to get it running on your local machine.

  • Clone the Application using this command git clone https://github.com/kisakyegordon/phone-generator

Install Required Libraries

  • Enter the cloned directory.

  • Run npm install or yarn, to install any dependant libraries.

Start The Application

  • To start the application, run the npm start or yarn start commands.
  • Starting the application also proceeds to generate a random number each time its run, the random number relates to the number of phone contacts created each time.

Running the tests

To locally run the tests

  • run the npm test or yarn test, you can also see the whole coverage by appending --coverage ie npm test --coverage.

How it works.

  • After setting everything up, when you start the application with npm start or yarn start.

    These are the things that happen :-

    1 - Total Number of randomly generated numbers is logged on the console.

    2 - Smallest and Largest generated numbers are logged on the screen with their Id's.

    3 - 3 files are generated in the applications root-directory ie

    • phoneNumbers.json - Contains all generated phone numbers.

    • phoneNumbers-asc.json - Contains generated phone numbers arranged in Ascending order.

    • phoneNumbers-desc.json - Contains generated phone numbers arranged in Deccending order

    Screenshot Logged Information

    Screenshot Generated Files

phone-generator's People

Contributors

kisakyegordon avatar

Watchers

James Cloos avatar  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.