Use the boilerplate to get started with seamless and react.
A server-client interface simplifying API-creation and usage.
// server.js:
module.exports = {
hello: async ({ args, }) => "Hi " + args.name,
};
// client.js:
import { functions, } from 'api.generated.js';
const hello = await functions.hello({ name: 'Ben', });
console.log(hello) //-> Hi Ben
TODO
- Getting started-guide
- Expose API to use seamless from a node script (see production.md)
- Documentation
- Switch to typescript
- Generated code requires
jwt-decode
. Automatically make sure it is installed?