My CV, this is as simple as:
const dreamJobCo = 'Your company';
(async () => {
const javi = new JaviCV();
await javi.findJob(dreamJobCo);
javi.say('Hurray!!');
})();
npm install
npm run cv "Company name"
- Icon made by Freepik from www.flaticon.com
- TODOs:
- Localization: Support for different langs
- Put this into a Docker
- Some scss would be nice
- Reduce pdf size with ghostscript
- Use express to handle the resources
- Split scss code
- Lint for html and scss
- Read data from json file
- New version uses:
- Typescript
- SCSS
- New version stops using:
- pdf-puppeteer. Now I am calling puppeteer manually.
- NPM scripts:
npm run cv
: Calls the script to generate the pdfnpm run dev
: Runs the debug server
I dockerized this node project just for fun. These are the instructions to create the image from the Dockerfile and to run that image to generate the pdf.
Create the image
docker build -t javfres/cv .
Render the pdf
touch ./cv.pdf \
&& docker run --rm -v${PWD}/cv.pdf:/cv/cv.pdf javfres/cv npm run cv
Interactive for debug
docker run --rm -it javfres/cv /bin/bash