/afb-libafb

The core library of the application framework binder

Primary LanguageCOtherNOASSERTION

Core library of Application Framework Binder

This project provides the library for building microservice architecture. This library is at the core of the AFB-binder.

This project is available here https://github.com/redpesk-core/afb-libafb.

License and copying

This software if available in dual licensing. See file LICENSE.txt for detail

dependencies

This project depends of two other project:

It can use the other libraries:

  • cynagora (Apache-2): for checking permissions
  • libsystemd (LGPL-2.1+): management of events
  • libmicrohttpd (LGPL-2.1+): for HTTP server and WebSocket negociation
  • GnuTls (LGPLv2.1+) For TLS encryption

Building

You can build it using the following set of commands:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
make -j install

But the simplest way to build and install libafb is the use the script mkbuild.sh as below:

./mkbuild.sh --prefix /usr/local install

Deploy test code coverage

mkdir build
cd build
CMAKE_BUILD_TYPE=COVERAGE ../mkbuild.sh -f
make test
lcov --capture --directory . --exclude '/usr/*' --output-file coverage.info
genhtml coverage.info --output-directory coverage_report
xdg-open ./coverage_report/index.html