Giter Site home page Giter Site logo

faktur's Introduction

Gopher

Faktur

Invoice generator as a service.

Go version


Installation

With go CLI:

go build -o faktur .
./faktur

With docker:

docker run        \
  --name faktur   \
  -p 8080:8080    \
  -d              \
  docker.pkg.github.com/shellbear/faktur/faktur

Or download binary from the release page.

How it works?

faktur

Api

$ curl --header "Content-Type: application/json" \
    --request POST \
    --data-binary @data_example.json \
    http://localhost:8080/
{
    "title": "StoneCrete Flooring - Invoice",
    "date": "2023-05-15T12:30:05.371Z",
    "due_date": "2023-05-27T12:30:05.371Z",
    "currency": "$",
    "contractor": {
      "logo": "https://type_your_link_here.com",
      "business_name": "StoneCrete Inc,",
      "phone": "(407)640-2333",
      "email": "[email protected]",
      "registration_number": "N/A",
      "address": {
        "address": "7901 4Th St N Ste 300", 
	    "city": "St. Petersburg",
        "state": "FL",
        "zip_code": "33702"
      }
    },
    "customer": {
      "full_name": "Acme Inc,",
      "phone": "(689)250-4444",
      "email": "[email protected]",
      "terms": "NET60",
      "address": {
        "address": "212 Ronnie St", 
	    "city": "Somewhere",
        "state": "FL",
        "zip_code": "33233"
      },
      "amount_paid": "50.00",
      "customer_notes": "Payments accepted: wire transfer, check, or credit card."
    },
    "items": [

      {
        "item_number": "2005",
        "description": "Additional clear urethane top coat",
        "rate": 200.41,
        "quantity": 1.0,
        "tax_rate": 0.07
      },
      {
        "item_number": "4002",
        "description": "Epoxy Metallic blue and clear urethane coat",
        "rate": 1400.25,
        "quantity": 2.0,
        "tax_rate": 0.07
      }
    ]
}

Environment variables

FAKTUR_HOST

Faktur service host address. Defaults to 127.0.0.1.

FAKTUR_PORT

Faktur service port. Defaults to 8080.

FAKTUR_WORKERS

The number of workers (used to create invoices). Defaults to 4.

FAKTUR_INVOICE_DIR

The folder used to store invoices. Defaults to ./invoices.

FAKTUR_TEMPLATE_DIR

An optional directory which contains additional invoice templates. Empty by default.

FAKTUR_CACHE_DIR

The cache folder for wkhtmltopdf. Defaults to /tmp/cache-wk/.

Built with

Credits

License

© shellbear, 2020time.Now © StoneCrete, 2023time.Now

Released under the MIT License.

faktur's People

Contributors

agaviria avatar shellbear avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

agaviria

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.