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.
Make sure you have the following installed on your system:
- Node.js and npm (for the frontend)
- Python 3.10 and pip (for the backend)
- Docker and Docker Compose (optional, for containerization)
- Clone the Repository
git clone https://github.com/yourusername/invoice-generator.git cd invoice-generator - Set Up Environment Variables
- Backend: Create a
.envfile in thebackendfolder 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.localfile in thefrontendfolder for frontend-specific configurations:NEXT_PUBLIC_BACKEND_HOST=http://localhost:8000
- Backend: Create a
- Navigate to the Backend Directory
cd backend
