QuickStart
Get started with the Open Ledger React Library by setting up the necessary components to manage financial data in your application. This guide will walk you through creating a company using the API, configuring the OpenLedgerProvider
, and implementing the OpenLedgerView
to display financial information.
Install the Library
Begin by installing the Open Ledger React library in your project:
Create a Company via the API
Before integrating the React components, you’ll need to create a company in Open Ledger using the API.
API Endpoint to Create a Company
Sample cURL Command
Replace {access_token}
with your actual API access token.
Set Up the OpenLedgerProvider
Configure the OpenLedgerProvider
in your application to provide global settings and authentication for your components.
Warning: Without valid keys (companyId, enterpriseId, and enterpriseSecret), the package will throw errors. If you need to obtain these keys or have any issues, please reach out to the Open Ledger team at info@openledger.com for assistance.
Add OpenLedgerView to Your Application
Implement the OpenLedgerView
component to display a comprehensive view of your company’s financial data.
Conclusion
You have now set up the Open Ledger React Library in your application. This setup allows you to manage and display your company’s financial data using modern React components. Continue to explore additional components and features provided by the library to enhance your application further.
For more detailed API documentation or further support, please refer to our comprehensive online resources or contact our support team.