Skip to content

lruzicki/WorklogInvoiceSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invoice Generator Application

This repository contains a Django backend and a Next.js frontend to process worklog files and generate invoices using the inFakt API. It is possible to define more templates to work with different worklogs.

Table of Contents

Prerequisites

Make sure you have the following installed on your system:

Installation

  1. Clone the Repository
    git clone https://github.com/yourusername/invoice-generator.git
    cd invoice-generator
    
  2. Set Up Environment Variables
    • Backend: Create a .env file in the backend folder with the required environment variables for the Django app and inFakt API:
      INF_AKT_API_KEY=your_infakt_api_key
      RATE_PER_HOUR=your_hourly_rate
      CLIENT_COMPANY_NAME=your_client_company_name
      CLIENT_TAX_CODE=your_client_tax_code
      CLIENT_STREET=your_client_street
      CLIENT_CITY=your_client_city
      CLIENT_POST_CODE=your_client_post_code
      CLIENT_COUNTRY=PL  # Or any other country code
      SELLER_NAME=your_name
      LUMP_SUM=12.0
      VAT_EXEMPTION_REASON=1  # Set the reason for VAT exemption
    • Frontend: Create a .env.local file in the frontend folder for frontend-specific configurations:
      NEXT_PUBLIC_BACKEND_HOST=http://localhost:8000

Running the Application

Backend

  1. Navigate to the Backend Directory
    cd backend
    
    

Preview of the application

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published