Coder Social home page Coder Social logo

help.com-challenge's Introduction

Help.com Challenge

This project connects to a test server, allowing the User to send JSON requests. The User can send any valid line-delimited JSON, or run an optional command.

Installation

After pulling down the project, run:

npm install

Usage

After installing all necessary libraries, run:

npm run start

Or

node challenge.js

When your "Username" is requested, you may enter in anything and then press Enter. When your "Password" is requested, you may enter in anything and then press Enter.

You'll be prompted with an ">". This indicates that you may run any of the below commands. After you enter in a command, you'll see a prettified message, or possibly an error, from the Server. Sometimes this is instant, sometimes it takes a few seconds. When waiting on a message, you'll be unable to enter in anything.

Possible Commands

  • /count
    • This will send a count request and return the amount of total requests sent to the server
  • /time
    • This will send a request that will return the current date/time and a random number
    • If the random number is greater than zero, a message will appear
  • /time&count
    • This will send the combination of /count & /time commands
  • /count&time
    • This will send the combination of /count & /time commands
  • /send [your json]
    • This will send any json you enter
    • This will not show any returned message
    • This will error out if invalid JSON

Tests

Simply run:

npm run test

Only a few tests have been added.

help.com-challenge's People

Contributors

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