Git Product home page Git Product logo

node-ecosystem's Introduction

CF LAB

01 - Node Ecosystem

Author: Heather Cherewaty

Links and Resources

Build Status

Modules

greet.js and arithmetic.js

Exported Values and Methods
  • greeting.sayHello() -- returns null if no param passed in
  • greeting.sayHello(randomNameOne, randomNameTwo) -- returns null if given more than 1 name
  • greeting.sayHello(randomNumber) -- returns null if a number is passed in
  • greeting.sayHello(World) -- returns 'Hello, World!'
  • arithmetic.add(randomNumber, randomNumberTwo) -- returns sum of randomNumber and randomNumberTwo
  • arithmetic.add('meow', 'woof') -- returns null if given strings as input
  • arithmetic.subtract(randomNumber, randomNumberTwo) -- returns the result of randomNumber one minus randomNumberTwo
  • arithmetic.subtract('meow', 'woof') -- returns null if given strings as input
  • arithmetic.multiply(randomNumber, randomNumberTwo) -- returns product of randomNumber one times randomNumberTwo
  • arithmetic.multiply('woof', 'meow') -- returns null if given strings as input
  • arithmetic.divide(randomNumber, randomNumberTwo) -- returns the result of randomNumber divideed by randomNumberTwo
  • arithmetic.divide('woof', 'meow') - returns null if given strings as input

Setup

.env requirements

  • PORT - Defined in ENV.

Running the app

  • npm start
  • Endpoint: /
    • Returns console.log values from tests run on modules.

Tests

  • npm test (runs unit tests)
  • npm run lint (runs linter tests)

node-ecosystem's People

Contributors

hcherewaty avatar johncokos avatar

Watchers

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