Giter Club home page Giter Club logo

m4nd0mb3 / document-templater Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 593 KB

Document Templater is a powerful tool for automated document generation. Streamline the process of creating standard documents, such as contracts, reports, and forms, using predefined templates. This repository contains the source code for Document Templater, allowing you to easily integrate this functionality into your projects and automate docs.

License: Apache License 2.0

JavaScript 74.60% Dockerfile 25.40%
api automation backend contracts document-generation document-processing expressjs expressjs-api expressjs-server forms

document-templater's Introduction

Document Templater

GitHub release GitHub downloads GitHub license
Documentation Status GitHub issues GitHub followers github fork badge

πŸ€– Document Templater - Template Based Document Generation Microservice

Document Templater is a powerful and flexible microservice designed to simplify the generation of complex, personalised documents from predefined templates. Combining ease of use with the ability to create highly personalised documents, this microservice is ideal for automating the process of generating reports, contracts, forms and more.

Table of content

README idiomas: πŸ‡¦πŸ‡΄ PortuguΓͺs, πŸ‡ΊπŸ‡Έ English

How It Works

Document Templater leverages the Carbone library to merge templates with data, producing the desired output documents. It utilizes Node.js and Express.js for the backend, allowing you to build a robust and customizable document generation service.

The core features of Document Templater include:

  • πŸ“ Generate professional, elegant documents from pre-loaded templates.
  • 🎨 Easily customise documents by incorporating specific data.
  • 🌈 Support for multiple template formats, including Word (docx) and PDF.
  • 🍏 Simple integration with external APIs to fetch data in real time.
  • ⭐️ Flexible settings to adjust the appearance and content of documents.
  • πŸ“ Intuitive API that allows seamless integration into your existing projects.

Document Templater offers a scalable and efficient solution to meet your document generation needs, saving you time and ensuring consistent, high-quality results.

Bring document generation to life easily and reliably with Document Templater.

Getting Started

Follow these steps to get started with Document Templater:

Prerequisites

  • Node.js: Make sure you have Node.js installed on your machine.
  • LibreOffice: Make sure you have LibreOffice version 7.5.1.1 installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/m4nd0mb3/document-templater.git
  2. Navigate to the project directory:

    cd document-templater
  3. Install dependencies:

    npm install

Usage

  1. Start the server:

    npm start
  2. Open your web browser and navigate to http://localhost:3000.

  3. Explore the provided endpoints and examples to see how to generate different types of documents.

Running with Docker

To run Document Templater using Docker, follow these steps:

  1. Build the Docker image:

    docker build -t document-templater:latest .
  2. Run the Docker container:

    docker run -p 3000:3000 -d document-templater:latest
  3. Open your web browser and navigate to http://localhost:3000.

Swagger

Document Templater introduces a seamless integration with Swagger, enhancing your experience with the document generation service! πŸ“„βœ¨

With Swagger, accessing the powerful set of Document Templater's basic endpoints has never been easier. Whether you're a developer or just getting started, you'll appreciate the simplicity and efficiency it brings to interacting with the document generation service.

Here's a glimpse of how you can utilize Swagger to interact with Document Templater's endpoints:

  1. Explore Documentation: Dive into the comprehensive documentation provided by Swagger to understand the available endpoints and their functionalities.

  2. Try It Out: Use the user-friendly interface to experiment with various parameters and see real-time responses, enabling you to fine-tune your requests.

  3. Generate Documents: Leverage the endpoints to effortlessly create and manage your documents, all within a single, unified platform.

To get started, simply access the Document Templater Swagger documentation via the following endpoint:

Endpoint: /api-docs/


Configuration

Modify the configuration in .env to customize settings such as port, file paths, and more.

Contributing

Contributions are welcome! If you encounter issues or want to add new features, feel free to submit a pull request.

License

This project is licensed under the Apache-2.0 License.


document-templater's People

Contributors

m4nd0mb3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.