A simple Go HTTP Server for handling multipart-form POST requests and generating a profile card PDF from the provided data.
Please be advised: This project was merely meant to be an exercise for myself during my introduction to Go and Docker. It is therefore by no means considered a finished project.
Make sure you have the following installed on your machine:
- Go
- wkhtmltopdf
- optional: Docker
- Clone the repository
git clone https://github.com/nico-i/profile-card-gen
- Navigate to the project directory
cd profile-card-gen
- Install all dependencies
go get .
- Run the service
go run .
- Try it out under localhost:3000
To run this service inside a docker container, navigate to the project directory and run the following commands.
docker build --tag docker-profile-card-gen .
docker run -p 3000:3000 docker-profile-card-gen
Currently, the design of the form and card is based on the branding of AOE, but this can be fitted to your individual needs by editing the CSS & HTML files inside the public directory.
Based upon the following repos/inputs: