Dev Local
The new way to build documents.
High-quality, unstyled components for creating PDFs.
High-quality, unstyled components for creating PDFs.
Clone the repository.
npm install
- Copy the .env.example file to .env and fill in the required fields.
ONEDOC_API_KEY="your_api_key"
- For a live rendering experience, split your IDE in two views, and open invoice.pdf in your right tab. You can use the PDF Viewer extension if you are using VS Code.
npm run render
Build and render documents of your own in just one command line !
By default, this repository has test: true
enabled in ./src/render.tsx
. This will add a small watermark to your document and will prevent your account from being charged. To remove the watermark, set test: false
in ./src/render.tsx
.