@forestadmin-experimental/rpc-agent
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

The RPC agent is created to split your data into microservice, combined with a real agent and a RPC data source, you wil be able to acces all your collection as this is a normal agent.

Installation

  • install the package @forestadmin-experimental/rpc-agent.
  • give options like a real agent.
const { createRpcAgent } = require('@forestadmin-experimental/rpc-agent');

const agent = createRpcAgent({
  authSecret: process.env.FOREST_AUTH_SECRET,
  envSecret: process.env.FOREST_ENV_SECRET,
  isProduction: process.env.NODE_ENV === 'production',
  loggerLevel: 'Info',
});
// use the agent like a real one.

Readme

Keywords

none

Package Sidebar

Install

npm i @forestadmin-experimental/rpc-agent

Weekly Downloads

69

Version

2.0.0

License

GPL-3.0

Unpacked Size

80.6 kB

Total Files

29

Last publish

Collaborators

  • sinkneath
  • vincentmolinieforest
  • arnaudbesnier
  • styv
  • jeffladiray