Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/onedoclabs/dev-local

A small repository for local PDF development with Fileforge
https://github.com/onedoclabs/dev-local

Last synced: 7 days ago
JSON representation

A small repository for local PDF development with Fileforge

Awesome Lists containing this project

README

        

dev-local

Dev Local

The new way to build documents.
High-quality, unstyled components for creating PDFs.




Website
·
GitHub
·
Discord
·
Documentation

---

# Getting started

## 1. Installation

Clone the repository.

```
npm install
```

## 2. Set up environment

- Copy the .env.example file to .env and fill in the required fields.

```yaml
FILEFORGE_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](https://marketplace.visualstudio.com/items?itemName=mathematic.vscode-pdf) extension if you are using VS Code.

## 3. Render your first document$

```
npm run render
```

## 4. Have fun !

Build and render documents of your own in just one command line !

## 5. Remove the watermark

By default, this repository has `test: false` enabled in `./src/render.tsx`. To add the watermark and be in test mode, set `test: true` in `./src/render.tsx`.