Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

132 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Build HTTP server based on contract

Resources

Stars

22 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages