@norjs/cloud-client

Client for NorJS's cloud framework ==================================

Usage no npm install needed!

<script type="module">
  import norjsCloudClient from 'https://cdn.skypack.dev/@norjs/cloud-client';
</script>

README

Client for NorJS's cloud framework

This module creates client interfaces into services provided by @norjs/cloud-backend.

Install: npm i --save '@norjs/cloud-client'

import cloudClient from '@norjs/cloud-client';

cloudClient('http://localhost:3000').then(instance => {
    return instance.getDate().then(date => {
        return instance.echo('foobar').then(str => {
            console.log('.echo("foobar") returned "' + str + '" of type '+ typeof str+ " and of class "+ str.constructor.name);
        });
    });
});