Code Monkey home page Code Monkey logo

enterprise_proxy_lite's Introduction

Enterprise Proxy Lite

Compact version of Enterprise proxy that uses no DB connection. Please find more details in Official documentation of EP.


EP ARCHITECTURE

EP_ARCHITECTURE


GETTING STARTED

  • maven compile
    • The EP-API is compiled into a WAR file for distribution.
    mvn clean package
    cd epi-api/target
    * ep-api-0.0.1-SNAPSHOT.war file will be created.
  • application.properties (ep-api/src/main/resources)
    klaytn.rpc.server.host=<EN NODE RPC HOST>
    klaytn.rpc.server.port=<EN NODE RPC PORT>
    * The registered host is called by default if targetHost information is missing in the API.
    logging.level.root=log level (debug,info,error...)
    * The logging level is set as info by default.
    * You can change the level according to your dev or prod environment.
    feepayer.address=ENC(...)
    feepayer.password=ENC(...)
    feepayer.keyStoreFilePath=ENC(...)
    * You must create the delegated fee payer account in advance to use fee delegation functions.
    * The fee payer account information is designed to use Jasypt encryption for security reasons.
      ## How to use Jasypt to encrypt ##
      1. download jasypt-1.9.3-dist.zip (https://github.com/jasypt/jasypt/releases/tag/jasypt-1.9.3)
      2. unzip jasypt-1.9.3-dist.zip
      3. cd bin
      4. chmod 777 ./encrypt.sh
      5. ./encrypt.sh input="<target object to encrypt>" password="<decryption key: FYI, it is set as '@kalynep@' in EP source.>" algorithm="PBEWithMD5AndDES"
      6. RESULT
      ----ARGUMENTS-------------------
      algorithm: PBEWITHMD5ANDDES
      input: dbpassword
      password: encryptkey
      ----OUTPUT----------------------
      +VqidblzVqZJAGypmX65789787QrV0
  • tomcat
    • Set tomcat settings according to your dev or prod environments.
    wget http://mirror.apache-kr.org/tomcat/tomcat-8/v8.5.41/bin/apache-tomcat-8.5.41.tar.gz
    tar xvfz apache-tomcat-8.5.41.tar.gz
    mv ep-api-0.0.1-SNAPSHOT.war apache-tomcat-8.5.41/webapps/ROOT.war
    cd apache-tomcat-8.5.41/bin
    ./startup.sh
  • EP API SERVER
    http(s)://<EP_HOST>/swagger-ui.html
    

API CALL

  • Examples of Management / Admin / datadir calls
    http://<EP_HOST>/management/admin/datadir
    {
      "code": 0,
      "target": "api",
      "result": "SUCCESS",
      "data": "/data/kend/data"
    }

API RESPONSE

  • RESPONSE MODEL
    {
      "code": 0,
      "data": {},
      "result": {},
      "target": "string"
    }
    * Target can be one of these: api, rpc, transaction, router, fee delegated.

License

Enterprise Proxy Lite is provided under Apache License version 2.0. See LICENSE for more details.


Contributing

As an open source project, Enterprise Proxy Lite is always welcoming your contribution. Please read our CONTTIBUTING.md for a walk-through of the contribution process.

enterprise_proxy_lite's People

Contributors

klaytndev avatar daemeincho avatar ehnuje avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.