Quick start (10 minutes)
You need Docker, about 1 GB of disk space and the Oomplo image. Oomplo is in early access: ask us for the trial image and we send it with its installation guide.
1. Start the server #
Load the image you received and start it:
docker load -i oomplo.tar.gz
docker run -d --name oomplo --restart unless-stopped \
-p 127.0.0.1:3001:3001 -v oomplo-data:/data oomplo
Check that it runs:
curl http://127.0.0.1:3001/api/health
The answer is 200 with the version. All data (templates, results, the
database) lives in the oomplo-data volume, mounted at /data.
2. Add your licence #
Copy the licence file you received into the volume and restart:
docker cp license.json oomplo:/data/license.json
docker restart oomplo
Without a valid licence Oomplo runs as a trial: every PDF has the diagonal watermark "Oomplo – trial version" and the page header says "Trial version".
3. Create the administrator #
Open http://127.0.0.1:3001. Until the first account exists everyone has
full access ("Test account" in the header). Click Test account →
create the administrator account (or start the container with
-e OOMPLO_ADMIN_EMAIL=… -e OOMPLO_ADMIN_PASSWORD=…). From then on the page
asks to log in and the API needs a key: account menu → API keys… →
Create key; copy the key for step 5.
4. Upload a template #
Open http://127.0.0.1:3001. The page shows the list of templates.
- Choose Import DOCX and pick
docs/customer/templates/service-agreement.docx. - The template opens in the editor. The green highlights are data fields.
- Choose Publish. The published version is the one the API uses; later edits stay a draft until you publish again.
5. Make the first PDF from your system #
Find the template's id:
export OOMPLO_KEY=oomplo_… # the key from step 3
curl -s -H "Authorization: Bearer $OOMPLO_KEY" http://127.0.0.1:3001/api/library | jq '.templates[] | {id, title}'
Send the data and save the PDF:
curl -s -X POST http://127.0.0.1:3001/api/templates/<id>/render \
-H "Authorization: Bearer $OOMPLO_KEY" -H 'content-type: application/json' \
-d "{\"data\": $(cat docs/customer/templates/service-agreement.data.json)}" \
-o agreement.pdf
Open agreement.pdf: it has the parties, the three services with the
total, the discount sentence and two signature lines.
6. Make many PDFs from a spreadsheet #
Import serial-letter.docx and publish it. Then, in the template list,
choose Generate from a file and pick
docs/customer/templates/serial-letter.recipients.csv: you get one letter
per row, as one PDF or a ZIP. The same from the API is a series job, see
API.
Next #
- Preparing a template
- API
- Backups, updates and all settings: the installation guide that comes with the image.