Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adempiere/grpc-api

Package Overview
Dependencies
Maintainers
4
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adempiere/grpc-api

ADempiere Web Store write in Javascript for a node service

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
227
decreased by-79.95%
Maintainers
4
Weekly downloads
 
Created
Source

ADempiere Web backend API for gRPC

npm version License Downloads Dependencies

ADempiere Client write in Javascript for gRPC service, use it for connect with

ADempiere-gRPC-Server.

Requirements

See also:

You can get a image from Backend using it: https://hub.docker.com/repository/docker/erpya/adempiere-grpc-all-in-one Docker file for trusted builds of ADempiere gRPC Deploy on https://hub.docker.com/r/erpya/adempiere-grpc-all-in-one.

You will need use a file with a structure like it: all_in_one_connection.yaml

server:
    port: 50059
    services:
       -   access
       -   business
       -   core
       -   dashboarding
       -   dictionary
       -   enrollment
       -   log
       -   ui
       -   workflow
database:
    host: localhost
    port: 5432
    name: adempiere
    user: adempiere
    password: adempiere
    type: PostgreSQL

Run the latest container with:

    docker pull erpya/adempiere-grpc-all-in-one
docker run --name adempiere-grpc-all-in-one -it \
	-p 50059:50059 \
	-v $(pwd)/all_in_one_connection.yaml:/opt/Apps/ADempiere-gRPC-Server/bin/all_in_one_connection.yaml \
	erpya/adempiere-grpc-all-in-one

Using it

# installing via NPM
npm install @adempiere/grpc-api --save
# installing via Yarn
yarn add @adempiere/grpc-api

A Example

Here a example for it using from Proxy of ADempiere API: https://github.com/adempiere/proxy-adempiere-api/blob/master/src/modules/adempiere-api/index.ts#L17

Recreate proto stub class (only for contribute to project)

For recreate stub class you must have follow:

Note: You can also install protoc and protoc-gen-grpc-web by going to the repository directory and run the command:

sh install-protoc.sh

When installation is complete, check the version with

protoc --version

After installed it just go to source code folder an run it:

Run Access gRPC

cd ../../protos
yarn global add grpc-tools
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:src/grpc --grpc_out=src/grpc --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` proto/access.proto proto/client.proto proto/base_data_type.proto proto/core_functionality.proto proto/dictionary.proto proto/business.proto

Or run:

sh generate-stub.sh

The result is generated on: src/grpc folder

  • access_grpc_web_pb.js
  • access_pb.js
  • client_pb.js
  • client_grpc_web_pb.js
  • base_data_type_pb.js
  • base_data_type_grpc_web_pb.js
  • core_functionality_pb.js
  • core_functionality_grpc_web_pb.js
  • dictionary_pb.js
  • dictionary_grpc_web_pb.js
  • business_pb.js
  • business_grpc_web_pb.js

Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. Become a sponsor

Keywords

FAQs

Package last updated on 21 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc