Coder Social home page Coder Social logo

pix-pdf's Introduction

Woovi Pix PDF

How to run

  • Install deps
pnpm install
  • Run storybook
pnpm storybook

How to develop new templates

- Create a new file in src/templates
- Create .stories.tsx file
- Run the command `pnpm storybook`

How to expose a new template

- Export the new template in src/templates/index
- Add the new template to templatesMap src/bin/generate-pdfs
- Run the command `pnpm generate-pdfs`

The pdf file will be available in the generated-pdfs folder

References

pix-pdf's People

Contributors

juliomerisio avatar amorim33 avatar daniloab avatar noghartt avatar

Stargazers

Renan William avatar Luiz Nascimento avatar Bruno Bach avatar Rafael Lourenço avatar Franklin Javier avatar Alessandro Gambin da Silva avatar Yan Fernandes avatar Varun avatar Gabriel Tavares avatar Miki Oracle avatar RUDRANSH BARADIYA avatar Everton Pavan avatar  avatar Thiago Marinho avatar Marcos Vinicius Amaro Tenorio avatar Emanuel Avila avatar Alyson Farias avatar Yann avatar  avatar Miguel avatar Marcos Viana avatar  avatar Jordan Moshcovitis avatar Luan Vieira avatar João Luis Moraes avatar Daniel Gomes avatar Ernesto Resende avatar  avatar Enrique Santos De Oliveira avatar Luis carlos Silva avatar Lachlan Campbell avatar João Marins avatar Vinicius Nascimento avatar Fábio Barkoski avatar Christopher Ribeiro avatar Matheus Cascão avatar vorlefan avatar João Inácio Neto avatar Douglas Pimentel avatar Akinn Rosa avatar vitor avatar Mauricio Vieira avatar Bruno Melo avatar Rafa avatar Sibelius Seraphini avatar  avatar Cristiano avatar

Watchers

Sibelius Seraphini avatar  avatar  avatar  avatar  avatar  avatar Eduardo Maciel avatar Cristiano avatar

pix-pdf's Issues

Implement parallel processing for template handling to improve performance

for (const template of Object.keys(templatesMap)) {
console.log(`Generating ${template}...`);
const templateStart = Date.now();
await createTemplatePdfs(mapTemplates(template));
const templateEnd = Date.now();
console.log(`${template} generated in ${templateEnd - templateStart}ms`);
}

The code currently processes templates one by one in a serial manner, which might be inefficient if the number of templates is large or if each template takes significant time to process. Using parallel processing could reduce the overall time.

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.