@erpjs/model
v0.3.0
Published
erpjs - the headless serverless ERP and CRM for the cloud core
Downloads
30
Readme
@erpjs - the headless serverless ERP and CRM for the cloud - the business core
This package contains the business core of erpjs - the headless serverless ERP and CRM for the cloud. erpjs can run on your local computer, in a containerized environment like Kubernetes (K8) on Google Cloud, Microsoft Azure or IBM Cloud or even as a serverless function in AWS.
The library has only two peerDependencies
so you can easily base your own CRM or
ERP on the top of the package and use the ORM or REST etc. libraries you like.
This library contains only the business code, no persistence, minimum dependencies:
services (e.g.
BankAccountService
orLeadService
). The services contains the core business logic like:SalesInvoiceService
makes sure VATs are applied if necessary, the grand total is rounded and is ready to be posted with the correct currency rateProspectService
correctly convertsSuspectModel
toProspectModel
when needed
entity interfaces (e.g.
AccountModel
orCustomerModel
). What are the basic minimum attributes entities need to have.jobs (e.g.
SalesInvoiceJob
). Repeatable jobs that e.g. assign document numbers to invoices.args. The interface for a new entity to be created through the service.
Injector to be able to make calls between services.
If you are looking for a bigger example, please have a look at iDempiere-micro/erpjs. It contains the monorepo of the erpjs API server (backend) and a sample Angular web client (frontend) together with some libraries like @erpjs/model, the business core of erpjs.
Documentation
The documentation is available at Docs.