appherd-client

Service client to interact with appherd

Usage no npm install needed!

<script type="module">
  import appherdClient from 'https://cdn.skypack.dev/appherd-client';
</script>

README

appherd-client

Service client to interact with appherd

Usage

let client = new AppHerdClient(port)
client.fetchHerd()
.then(() => {
  var port = client.port('service-name')
  var url = client.url('service-name') // http://localhost:port

  client.fetch('service-name', '/absolute/path')
  // returns fetch('http://localhost:port/absolute/path')