Giter VIP home page Giter VIP logo

node_chat's Introduction

Prerequisites

Install

$ git clone https://github.com/seenkoo/node_chat.git \
  cd ./node_chat \
  npm install

Configuration

Application can be configured by modifying ./config/default.yml config file:

# ./config/default.yml
workersCount: 4 # Number of subprocesses to run
historyTTL: 600 # Maximum message age in seconds

server:
  port: 8080 # Port to listen incoming requests
  host: 127.0.0.1 # Host to listen incoming requests

redis:
  host: 127.0.0.1 # IP address of the Redis server
  port: 6379 # Port of the Redis server
  path: null # The UNIX socket string of the Redis server
  url: null # The URL of the Redis server.
  db: 0 # Database index to use.
  password: null # If set, client will run AUTH command on connect
  keyPrefix: 'node_chat:' # The prefix to prepend to all keys in a command

logger:
  level: debug # ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < MARK < OFF
  category: '[node_chat]'
  stdout: false # Enable or disable logging to STDOUT
  file: # Setting this to falsy will disable logging to file
    filename: 'app.log' # Path of the file where you want your logs written
    maxLogSize: 10458760 # If not specified, then no log rolling will happen
    backups: 0 # Number of old log files to keep during log rolling

Start

$ node app.js

node_chat's People

Contributors

seenkoo avatar

Watchers

 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.