Quiarom / cv-generator-with-rust

This is a template based cv generator made with rust, comrak, wkhtmltopdf. It converts a json file to a pdf version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CV Generator made with rust

This is a template based cv generator made with rust, comrak, wkhtmltopdf. It converts a json file to a pdf version

Features

  • Nodes: intro, description, rightImage, techStack, space, extra (html), social
  • Rest API to generate CV
  • JSON to pdf

TO DO

  • Expose as Rest API
  • More than 1 pdf output
  • Graphic interface
  • More Nodes

How to run

Configure in the .env file the port and the host

  1. docker build -t web:latest .
  2. docker run -d --name cv-gen -e "PORT=8765" -p 8081:8765 web:latest

Example

http://localhost:8081/generate_cv

[
    {
        "type": "config",
        "data": {
            "title": "Hector CV",
            "theme": "default"
        }
    },
    {
        "type": "intro",
        "data": "Hello, Hector Pulido is Here! πŸ‘‹"
    },
    {
        "type": "description",
        "data": "`Third Clarke law; Any suffici..."
    },
    {
        "type": "rightImage",
        "data": {
            "image": "https://github.com/HectorPulido/HectorPulido/raw/master/img/pequesoft.png",
            "link": "https://twitter.com/Hector_Pulido_"
        }
    },
    {
        "type": "techStack",
        "data": {
            "title": "Tech Stack ⌨",
            "tech": [
                "Python and Flask, Django ⭐",
                ...
                "ASM for Pics"
            ]
        }
    },
    {
        "type": "space",
        "data": {}
    },
    {
        "type": "extra",
        "data": "<p align=\"center\">\n<a href=\"#user-30538313-pinned-items-reorder-form\">\n<img align=\"center\" src=\"https://github-readme-stats.vercel.app/api?username=HectorPulido&bg_color=30,e96443,904e95&title_color=fff&text_color=fff\" alt=\"Hector's Github Stats\"/>\n</a>\n</p>"
    },
    {
        "type": "social",
        "data": {
            "title": "@<div align=\"center\">\n<h3 align=\"center\">Let's connect πŸ˜‹</h3>\n</div>",
            "social": [
                {
                    "alt": "Hector's LinkedIn",
                    "url": "https://www.linkedin.com/in/hector-pulido-17547369/",
                    "image": "https://www.vectorlogo.zone/logos/linkedin/linkedin-icon.svg"
                },
                ...
            ]
        }
    }
]

Example

Let's connect πŸ˜‹

Hector's LinkedIn     Hector's Twitter     Hector's Twitch     Hector's Youtube    

About

This is a template based cv generator made with rust, comrak, wkhtmltopdf. It converts a json file to a pdf version

License:MIT License


Languages

Language:Rust 88.9%Language:Dockerfile 10.8%Language:Shell 0.2%