Invoice Generator is an API service built with Encore to create PDF invoices with Maroto V2 based on provided data. This repo was created as example for a blog post about Building an Invoice Generator Service with Encore and Maroto in Go.
- Encore CLI installed.
- Go installed.
- Maroto for PDF generation.
Clone the Repository
git clone https://github.com/wawandco/invoice-generator.git
cd invoice-generator
Install Dependencies
go mod tidy
Run the Application
Start the application with Encore:
encore run
And call http://localhost:4000 to use the app's endpoints.
- Method: POST
- Path:
/generate-invoice
- Description: Generates a PDF invoice based on the provided data and returns the PDF bytes.
This Repo is Copyright © 2024 Wawandco SAS.
Made with ❤️ at wawand.co