Skip to content

contracto-lab/contracto-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contracto

EL Passion

Creates HTTP server based on your contract.

Installation

$ gem install contracto

Usage

Start server:

$ contracto start https://github.com/contracto-lab/contracto-format.git

Test server (default port is 54321):

$ curl localhost:54321/users; curl localhost:54321/users/1; curl localhost:54321/users/2

Stop server:

$ contracto stop

How to write contract

See documentation.

About consumer-driven contracts pattern

http://martinfowler.com/articles/consumerDrivenContracts.html

Contributing

  1. Fork it ( https://github.com/[my-github-username]/contracto/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request