Socket
Book a DemoInstallSign in
Socket

github.com/white43/SEP401-pdf-generator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/white43/SEP401-pdf-generator

v0.0.0-20240320011709-37f9952858e9
Source
Go
Version published
Created
Source

PDF Generator Project

This is a simple project for converting static HTML and web links into PDF files. Under the hood it utilises go for backend services, Vue.js for frontend services, and Headless Chromium for the HTML-to-PDF process. This repository contains the main parts (directories): frontend (user interface), api (backend that the frontend will be communicating), and daemon (for processing long-running background jobs).

Quick Start

To run this project we need to have golang and nodejs (yarn 1) installed.

Backend

Under the rood directory of the project run the following commands:

  • go build -o ./api/app ./api
  • go build -o ./daemon/app ./daemon
  • docker network create torrens
  • docker compose up -d
  • Check docker ps to ensure that five containers are up and running (app, daemon, db, chromiun, smtp)
  • docker exec -it db sh and run mysql -u $MYSQL_USER -p"$MYSQL_PASSWORD" -D $MYSQL_DATABASE < /opt/db.sql inside the container
  • Check that http://localhost:8080/v1/user/balance returns message not authorized

Frontend

Under the rood directory of the project run the following commands:

Shutdown

  • Terminate yarn serve by pressing `Ctrl+C
  • Under the rood directory of the project run docker-compose down

FAQs

Package last updated on 20 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.