https://github.com/hingew/hsfl-master-ai-cloud-engineering
https://github.com/hingew/hsfl-master-ai-cloud-engineering
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hingew/hsfl-master-ai-cloud-engineering
- Owner: hingew
- Created: 2023-10-04T18:21:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T21:39:09.000Z (over 2 years ago)
- Last Synced: 2025-02-09T20:45:56.205Z (over 1 year ago)
- Language: Go
- Size: 18.7 MB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDF-Designer
[](https://codecov.io/gh/hingew/hsfl-master-ai-cloud-engineering)
## Description
The PDF Designer project allows users to generate PDFs based on a custom template. These templates can be dynamically populated with data, such as invoice generation or listing data in a table.
## Authors
Hauke Ingwersen\
hauke.ingwersen@stud.hs-flensburg.de\
Hochschule Flensburg
Robert Pfeiffer\
robert.pfeiffer@stud.hs-flensburg.de\
Hochschule Flensburg
Jannes Nebendahl\
jannes.nebendahl@stud.hs-flensburg.de\
Hochschule Flensburg
## Installation
Please copy the .env.example file to .env and adjust the AUTH_SIGN_KEY=.
`cp .env.example .env`
Create a private key for signing JWT tokens:
```
openssl genrsa -out key.pem 2048
openssl rsa -in key.pem -outform PEM -pubout -out public.pem
```
Create a private key for signing JWT tokens:
```
openssl genrsa -out key.pem 2048
openssl rsa -in key.pem -outform PEM -pubout -out public.pem
```
Update the content of your `.env` file in the project root.
```
AUTH_PRIVATE_KEY=""
AUTH_PUBLIC_KEY=""
```
To build the docker container you have to run the following command:
`docker-compose up -d --build`
### Installation with MacOS ARM
Add the following line under _web_ in the _docker-compose.yml_ file only if MacOS with ARM is being used:
`platform: linux/amd64`
## Start Application
You can host the application in the following 3 environments. To start them you can use the script files in the script directory.
### Docker
Run the script `script\start_docker`
### Kubernetes with Minicube
Run the script `script\start_minicube`
### Kubernetes on own Cluster
Run the script `script\start_own_cluster`
# Test account
User: `test@test.com`
Password: `test`
## Current Architecture
