https://github.com/premium-minds/billy-demo-app
Demonstration application for billy invoice engine
https://github.com/premium-minds/billy-demo-app
billy invoices java maven
Last synced: about 1 year ago
JSON representation
Demonstration application for billy invoice engine
- Host: GitHub
- URL: https://github.com/premium-minds/billy-demo-app
- Owner: premium-minds
- License: mit
- Created: 2013-09-11T16:45:27.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2025-06-11T14:47:40.000Z (about 1 year ago)
- Last Synced: 2025-06-14T03:05:12.081Z (about 1 year ago)
- Topics: billy, invoices, java, maven
- Language: Java
- Homepage: https://premium-minds.github.io/billy/index.html
- Size: 274 KB
- Stars: 1
- Watchers: 9
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
billy-demo-app
==============
# How to use
## Create database
```
createdb -h localhost -U postgres billy-demo
```
## Compile jar file
```
mvn package
```
## Execute jar file
```
mvn -B dependency:copy-dependencies
# using classpath
java -cp "target/DummyApp-0.0.1-SNAPSHOT.jar:target/dependency/*" dummyApp.app.App
# using modulepath and classpath
java -p "target/DummyApp-0.0.1-SNAPSHOT.jar:target/dependency/billy-core-8.0.1.jar:target/dependency/billy-core-jpa-8.0.1.jar:target/dependency/billy-gin-8.0.1.jar:target/dependency/billy-spain-8.0.1.jar:target/dependency/billy-portugal-8.0.1.jar:target/dependency/guice-5.1.0.jar:target/dependency/guice-persist-5.1.0.jar" \
-cp "target/dependency/*" \
-m DummyApp/dummyApp.app.App
```
## Alternatively execute directly from maven
```
mvn exec:java -Dexec.mainClass="dummyApp.app.App"
```
## Single Invoice Demonstration with SAFT and PDF export
```
java -jar target/DummyApp.jar demo portugal
```
or
```
mvn exec:java -Dexec.mainClass="dummyApp.app.App" -Dexec.args="demo"
```
will create a _saft.xml_, an _invoice*.pdf_ and a _creditNote*.pdf_