Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celer/hopjs-remote
Remote API library and tools for hopjs
https://github.com/celer/hopjs-remote
Last synced: 18 days ago
JSON representation
Remote API library and tools for hopjs
- Host: GitHub
- URL: https://github.com/celer/hopjs-remote
- Owner: celer
- License: mit
- Created: 2013-01-21T20:46:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-03T21:15:21.000Z (over 10 years ago)
- Last Synced: 2024-12-04T20:18:00.933Z (about 1 month ago)
- Language: JavaScript
- Size: 369 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Introduction
This is the remote API library and binarys for hopjs
See http://github.com/celer/hopjs for more details about hopjs
# API Library
You can instantiate a hopjs based api locally for a remote service by doing:
```javascript
var Hop = require('hop-remote')
Hop.remoteAPI("http://www.mywebsite.com/",function(err,api){
api.UserService.create({ username:"bob",password:"password"},function(err,user){
console.log("The user was created with ",user);
});
});```
# Command line tools
There are also two command line tools:
## hopjs
hopjs is a tool which allows:
* Remote unit testing
* Executing individual calls
* Evaluation of a script of calls```shell
hopjs --url http://www.mywebsite.com/ --unitTest
## hopjs-browser-test
hopjs-browser-test allows running hopjs unit tests against a specific browser
hopjs-browser-test --url http://www.mywebsite.com/ --browser firefox