Code Monkey home page Code Monkey logo

philo's Introduction

philo - stack-test.rb

Implemented using node.js

Installation Instructions

  1. Install dependencies witn npm install

  2. Customize your config.json

  3. Make sure directory for logDirctory exists, e.g. $prompt> mkdir logs/

Execution Instructions

  1. Configure your $NODE_ENV for the right logging level:
  • $ export NODE_ENV=debugging
  • default is development, see below for options
  1. Execute the code, e.g. prompt> node server.js

  2. Kill gracefully w/ CTRL+c or kill

Environment configuration

See winston documentation for description of log levels

  • production :== Only log errors, no console
  • testing :== Log up to info, no console
  • development :== Log up to verbose, with console
  • debugging :== Log silly, with console

Diagnostic instructions

  1. The diagnostic port is configured in config.json
  2. I like running it with $telnet <ipAddr> <port>

Tested as follows:

  • $ node --version v10.13.0
  • $ sw_vers
      ProductName:         Mac OS X
      ProductVersion:      10.14
      BuildVersion:        18A391
  • $ruby --version 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

philo's People

Contributors

chordanation avatar markhary avatar

Watchers

James Cloos avatar  avatar

Forkers

doytsujin

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.