Giter VIP home page Giter VIP logo

wstats's Introduction

Wstats

  • Natural language TCP server.
  • A minimal docker container.
  • Automatically pushes it to dockerhub if circlec build pass.

Setup

Installation

mkdir -p $GOPATH/src/github.com/rafaeljesus
cd $GOPATH/src/github.com/rafaeljesus
git clone https://github.com/rafaeljesus/wstats.git
cd wstats
glide install
sh build && sh build-container

Running Tests

go test $(go list ./... | grep -v /vendor/)

Usage

Runing tcp server

./wstats

Running tcp server with custom http/tcp ports

./wstats -tcp_port=5555 -http_port=8080

Sending Text

echo -n "lorem porem foo lorem bar foo" | nc localhost 5555

Or

nc localhost 5555 < some_text.txt
  • Response
HTTP/1.0 Status 200 OK

API

See docs

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Badges

Build Status Go Report Card


GitHub @rafaeljesus  ·  Medium @_jesus_rafael  ·  Twitter @_jesus_rafael

wstats's People

Contributors

rafaeljesus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wstats's Issues

Add fault tolerance capabilities

Add a fault tolerance package for supervising trees for Go applications, similar to what Erlang runtime offers with OTP,

An example of this in action can be seen here

Support for databases

Currently the words are processed and stored in memory, so we need to expose a database adapter so clients can use others databases like redis, postgres, elastic search etc..

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.