Welcome to my go-newspaper-display
repository! ๐ This is where I showcase my love for newspapers and Go programming. ๐
Here's a quick overview of what you'll find in this repo:
go-newspaper-display/
โโโ Dockerfile ๐ณ
โโโ README.md ๐
โโโ cache ๐
โโโ config.yaml โ๏ธ
โโโ docker-compose.yaml ๐
โโโ go.mod ๐ฆ
โโโ go.sum ๐
โโโ main.go ๐
โโโ main_test.go ๐งช
โโโ templates
โโโ home_with_image.html ๐
Dockerfile
: The recipe for building our Docker image ๐๏ธREADME.md
: You're reading it right now! ๐cache
: Where we store our cached newspaper images ๐ผ๏ธconfig.yaml
: Configuration file for specifying PDF URLs and cache time โdocker-compose.yaml
: Defines our Docker Compose services ๐ณgo.mod
and go.sum
: Go module files for managing dependencies ๐ฆmain.go
: The heart of our application, where all the magic happens โจmain_test.go
: Unit tests for our application ๐งชtemplates/home_with_image.html
: HTML template for displaying the newspaper image ๐๏ธconfig.yaml
file with your desired PDF URLs and cache time โ๏ธdocker-compose up
to start the application ๐http://localhost:8080
to see the newspaper display! ๐To run the unit tests for this project, follow these steps:
Make sure you're in the project directory
Run the following command:
go test -v
The test results will be displayed in your terminal, showing which tests passed or failed
If you have any suggestions, bug reports, or want to contribute to this project, feel free to open an issue or submit a pull request. Let's make this the best newspaper display ever! ๐ฐ๐ช
Happy coding! ๐จโ๐ป๐ฉโ๐ป