GithubHelp home page GithubHelp logo

bay007 / cv-generator-with-rust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hectorpulido/cv-generator-with-rust

0.0 0.0 0.0 598 KB

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

License: MIT License

Shell 0.15% Rust 73.70% HTML 18.85% Dockerfile 7.30%

cv-generator-with-rust's Introduction

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, unorderedList, space, extra (html), social, achievement, title
  • Rest API to generate CV
  • JSON to pdf
  • CLI application to generate the CV pdf

TO DO

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

How to generate the PDF without running the API

  1. Install "wkhtmltopdf"
  2. cargo run "cv_data.json" Where cv_data.json is the name or the path of the json file with your cv info.

How to run API

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_template.html",
            "extra_data": {
                "font-family": "Open Sans",
                "font-type": "sans-serif",
                "font-url": "https://fonts.googleapis.com/css?family=Open+Sans"
            }
        }
    },
    {
        "type": "section",
        "size": "8",
        "data": [
            {
                "type": "intro",
                "data": "Hector Pulido"
            },
            {
                "type": "description",
                "data": "<b>Backend developer, AI enthusiast, Mechatronic Engineer, Math MSC (2023)</b>"
            },
            {
                "type": "description",
                "data": "I'm just a simple <b>Computational math</b> MSC student..."
            },

            {
                "type": "title",
                "data": "{i fas fa-star} Achievements and Experience"
            },
            {
                "type": "achievement",
                "data": {
                    "title": "{i fas fa-briefcase} Backend developer at Platzi",
                    "list": [
                        "B2C & B2B EdTech web software, more than 3 million students.",
                        "..."
                    ],
                    "data_range": "August 2020 - Now"
                }
            },
            {
                "type": "achievement",
                "data": {
                    "title": "{i fas fa-graduation-cap} Mechatronic Engineering, Universidad Autónoma Del Caribe, Barranquilla Colombia",
                    "list": [
                        "Honorable mention: ..."
                    ],
                    "data_range": "June 2015 - September 2019"
                }
            },
            {
                "type": "title",
                "data": "{i fas fa-keyboard} Related open source projects"
            },
            {
                "type": "achievement",
                "data": {
                    "title": "{i fas fa-robot} Evolutionary Neural Networks (C#, Unity)",
                    "list": [
                        "This is a <b>machine learning</b> ...."
                    ],
                    "url": "https://github.com/HectorPulido/Evolutionary-Neural-Networks-on-unity-for-bots"
                }
            }            
        ]
    },
    {
    
        "type": "section",
        "size": "4",
        "data": [
            {
                "type": "unorderedList",
                "data": {
                    "title": "{i fas fa-book} Contact",
                    "list": [
                        "{i fas fa-phone} +57 999999999",
                        "<a href='mailto:[email protected]'>{i fas fa-envelope} [email protected]</a>",
                        "<a href='https://github.com/HectorPulido'>{i fab fa-github} Github (HectorPulido)</a>",
                        "<a href='https://www.youtube.com/channel/UCS_iMeH0P0nsIDPvBaJckOw'>{i  fab fa-youtube} Youtube (Hector Pulido)</a>",
                        "<a href='https://twitter.com/Hector_Pulido_'>{i fab fa-twitter} Twitter (@Hector_Pulido_)</a>"
                    ]
                }
            },
            {
                "type": "unorderedList",
                "data": {
                    "title": "{i fas fa-magic} Tech Stack",
                    "list": [
                        "Backend with Python; Django stack",
                        "....",
                        "Unity3d"
                    ]
                }
            },
            {
                "type": "unorderedList",
                "data": {
                    "title": "{i fas fa-globe-europe} Languages",
                    "list": [
                        "Spanish (<b>Native</b>)",
                        "English (<b>Profesional profiency</b>)"
                    ]
                }
            },
            {
                "type": "unorderedList",
                "data": {
                    "title": "{i fas fa-fire} Soft Skill",
                    "list": [
                        "I like to learn about complex topics.",
                        "...",
                        "I can speak in public and transmit ideas easily.",
                    ]
                }
            }
        ]
    } 
]

Example

Let's connect 😋

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

cv-generator-with-rust's People

Contributors

hectorpulido 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.