@galaxyops/html-to-pdf

Your Go-To Solution for PDF Generation from HTML.


Keywords
aws-cdk-v2, co-op, cqrs-pattern, devops, event-driven, monorepo, nestjs, nx, platform-engineering, reactjs, rpg-game, serverless, typescript
License
MIT
Install
npm install @galaxyops/html-to-pdf@3.2.0

Documentation

@galaxyops 🌌

@galaxyops: Empowering Efficient Project Management and Accelerated Domain-Driven DevOps on AWS.

CI Codacy Badge Codacy Badge

Overview

Running numerous applications on AWS without a clear architectural pattern risks inviting chaos and uncertainty into your environment. @galaxyops is a cloud architecture emphasizing modern DevOps best practices on AWS. It lays the groundwork for the enterprise software landscape, ensuring scalability and maintainability across projects.

Features

  • Universal Language: Leveraging TypeScript for microservices, enhancing performance, readability, and maintenance. Other languages can be used for specific tasks, such as Python for data science.

  • Simple Setup: Turn-key deployment on bare metal systems, specially designed for compatibility with MacOS silicon environments and without a Docker dependency.

  • Monorepo Architecture: Centralizes development, streamlining code sharing, versioning, and dependency management with tools like Nx and PNPM.

  • CI/CD Pipeline: Autonomous pipeline for deploying auditable artifacts to AWS using IaC, ensuring consistency and scalability.

  • Event-Driven Microservices: Fault-tolerant communication via queues, with event data archived in a data lake for analytics.

  • Schema Contracts: Automatic mocking and validation for seamless inter-service communication and data integrity.

  • Ephemeral Environments: Provisioning of TLS certificates and email services using AWS Org Formation.

  • User Authentication: Integration of Cognito for user registration and authentication.

  • SPA Frontend with BFF: Single-page application with frontend hosted on S3 and deployed via CloudFront, with middleware for backend operations.

Getting Started

To install and build all packages, follow these steps:

corepack enable pnpm
pnpm install
pnpm nx run-many -t build --all
pnpm nx run hydrate-dotenvs:start hydrate ../../..

Scripts from any project can be ran:

pnpm nx run package-name:script

Install the following

brew install jq # MacOS, used for lambda layer builder

Flow Chart

AWS Multi-Account Architecture Initial Setup

These steps are required once by the platform team to initialize the IaaS.

  1. Setup AWS Org Formation.

  2. Set an environmental variable in the shell configuration file to establish a default AWS CLI profile for seamless authentication and resource access.

    echo 'export AWS_PROFILE=DeveloperSandbox' >> ~/.zshrc
  3. Login via SSO and bootstrap deployments. Deploy platform, services, and then clients in that order.

     aws configure sso
     pnpm nx run aws-sso:start DeveloperSandbox
     pnpm nx run-many -t cdk:bootstrap --all
     pnpm nx run-many -t cdk:deploy --projects=tag:scope:platform --parallel=false
     pnpm nx run-many -t cdk:deploy --projects=tag:scope:services --parallel=false
     pnpm nx run-many -t cdk:deploy --projects=tag:scope:middleware --parallel=false
     pnpm nx run-many -t cdk:deploy --projects=tag:scope:clients --parallel=false
  4. Login via SSO to tools account and then deploy tools.

    pnpm nx run aws-sso:start tools
    pnpm nx run-many -t cdk:bootstrap --all
    pnpm nx run-many -t cdk:deploy --projects=tag:scope:aws-tools-account --parallel=false

Documentation

Comprehensive documentation is essential for understanding and maintaining this project. Each project and folder structure should feature a README.md files containing documentation following RFC 2119 standards.

Note Use ./tools/help.sh for information on builtin commands.

Third Party Documentation

Contributing

Pull requests and bug reports are welcome on GitHub at https://github.com/hxtree/galaxyops. Please follow the code of conduct when contributing.

Acknowledgements

License

All packages available NPM are MIT licensed.