Skip to content

pablohpsilva/Scarlet-DistributedSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scarlet

A server in ruby.

How to use

  $ ruby server.rb {[[conf2.json],[folder_with_html,port]]}

Example:

  $ ruby server.rb conf2.json

Or

  $ ruby server.rb "./public" 8888

Cliente

  $ ruby client.rb "host" port "path" "arq" action value data

Example:

  $ ruby client.rb "localhost" 8888 "/index.html" "/Stack.rb" create Stack

or

  $ ruby client.rb "localhost" 8888 "/index.html" "/Stack.rb" push Stack Test

IDE and basic configurations

Basic skills

Server skills

Event listeners

Install

  $ sudo gem install bundler
  $ bundle install
  
  
  # ruby Environment
  $ brew install rbenv ruby-build rbenv-gem-rehash
  $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
  $ source ~/.bash_profile
  $ rbenv install 2.1.2
  $ rbenv rehash
  $ rbenv global 2.1.2


  # Bundler
  $ sudo gem install bundler
  $ bundle install
  $ brew install rbenv-default-gems
  $ echo "bundler\n" >> ~/.rbenv/default-gems

TCP Proxy Examples

Exemplo de um TCP Proxy com Python: http://voorloopnul.com/blog/a-python-proxy-in-less-than-100-lines-of-code/

Transparent TCP proxy in ruby (jruby): http://blog.bitmelt.com/2010/01/transparent-tcp-proxy-in-ruby-jruby.html

About

A HTTP implementation in ruby.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages