Giter Site home page Giter Site logo

faktura's Introduction

faktura

Simple invoicing webapplication using HTML templates. The goal of the application is to be an invoice pdf creator, with some minor customer-database features.

Installation

I recommend using a virtualenv. See this guide for a great explanation.

Requirements are collected in the requirements.txt file. pip install -r requirements.txt

You'll also need wkhtmltopdf, which is used by pdfkit. apt-get install wkhtmltopdf or your equivalent packagemanager.

Configuration can be done in the faktura.cfg file, where you can change the sql uri used by sqlalchemy. By default it will use a sqllite database, so you don't have to do anything. Generated pdfs are saved in the pdfs/ folder.

On a server

If you're running this on a VPS, you'll likely need xvfb as a virtual x-server. Check out Server.md for a short how-to install for debian

Demo Usage

To start the http-server as a standalone flask application: python runserver.py

After you've got the application running, simply navigate to http://127.0.0.1:5000

Templating

The PDF is currently created from the render.html template. Change the look of the invoice by editing that document. A proper template editor is a future feature.

Todo

See TODO.md. Ideas at IDEAS.md

Credits

Thanks to the following frameworks and resources:

faktura's People

Watchers

 avatar  avatar  avatar

faktura's Issues

Automatically generate a secure SECRET_KEY.

SECRET_KEY is used to encrypt the session cookies. If the default one is used, any sort of login can be easily bypassed by an attacker. The application should perhaps automatically generate this value to something secure during the initial setup to prevent admins from unintentionally forgetting to set this value and using the default value.

The repo should probably not have the config (faktura.cfg) set at all, but instead provide an "example.cfg" to prevent misuse. Optionally add all config options to the first time set up wizard, including the SECRET_KEY.

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.