Skip to content

Legacy article

A web app that creates and saves invoices

You can load or save from any device to quickly make a PDF invoice.

Built
reactpdfkitnextjsmongodb
The empty Create Your Invoice form, with fields for names, addresses, invoice number, date and line items

A client of mine wanted an easier way to create a simple invoice form, and wanted to be able to do it from many devices. A web app is the perfect way, as it can be accessed from any device with a modern browser.

The form allows you to write your info, your client's info, and add a logo.

The form filled in with a logo and two line items, showing that it is saved to the browser and to the cloud

You can then save the info to localStorage, so next time you open the site it will autofill for you. Or you can save it to the cloud (a dockerized MongoDB instance), so you can access it from anywhere with the same name and password.

The info in the backend is encrypted using your password, and your password is never stored in plaintext. I followed security best practices here, so your info is safe.

The generated PDF invoice, with the logo, both addresses, two line items and a total of $200.00

The web app uses pdfkit in the backend to create the PDF. The whole tech stack is Next.js + Tailwind CSS + MongoDB. Component testing and integration testing are done with Cypress. It's all in a Docker container, so deploying is just a simple docker-compose up. When I wrote this, it was deployed on one of my VPS machines.

Invoice ManagerFill in the form and download a PDF invoice.Try it out
Share this