eegfaktura / eegfaktura-billing

service for the eegfaktura software that does the actual billing
GNU Affero General Public License v3.0
1 stars 2 forks source link

eegfaktura Logo

eegfaktura-billingj

Do the actual billing

This service is part of the eegfaktura software. This software allows renewable energy communities (EEGs) to do the billing.

To setup full eegfaktura software see our eegfaktura-docker-compose project.

Installing / Getting started

Prerequisities

In order to run this container you'll need docker installed.

Built with

Developing

git clone https://github.com/eegfaktura/eegfaktura-billing.git
mvn clean package

Building

Usually this project can be run and executed in your IDE right away without much configuration. If you need to build the service outside your IDE:

mvn clean package

Testing

Please note, that the current state of tests is not yet fine and is to be extended, cleaned-up a lot still. The current tests ensure, that the most important billing use cases do work. It is definitely a good idea to have a look on the generated billing documents (PDF) to see if this service is creating them correctly.

(!) Be sure to adopt the prop "app.test.store-documents-path" located in /test/resources/applications.properties to define where the PDFs generated by the tests are stored.

Deploying / Publishing

You can deploy the container with docker or docker-compose as you wish.

Rest API

You can inspect and play with this services' API with the help of swagger (only visible when services is started with 'dev' profile!): http://youserver:8080/swagger-ui/index.html

Features

This (tenant-aware) service is responsible to do the actual billing. It provides:

Configuration

The services configuration is located in /src/main/resources/application.properties The container is accepting the following environment variables as configuration:

Contributing

When you publish something open source, one of the greatest motivations is that anyone can just jump in and start contributing to your project.

These paragraphs are meant to welcome those kind souls to feel that they are needed. You should state something like:

"If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome."

Links

Licensing

See LICENSE.md