This is a simple web application written in Go that generates posters for quotes. Users can input their favorite quotes and customize the appearance of the poster.
- Generate Posters: Select any quote from the database and generate a poster using images provided by Unsplash.
- Go 1.21.6 or higher
- Dependencies listed in
go.mod
- Clone this repository:
git clone https://github.com/JuanJoCasamitjana/inspiro_quotes_web.git
- Navigate to project directory
cd inspiro_quotes_web
- Initialize the database
go env -w CGO_ENABLED=1
go run .\cmd\utils\initialize_db.go -action init
go env -w CGO_ENABLED=0
- Run the application
go env -w CGO_ENABLED=1
go run .\cmd\utils\main.go
go env -w CGO_ENABLED=0
The application runs on port ":8080" and requires an Unsplash api key to fetch the images. The api keys are accesed through environment variables, but you can set your own ".env" for them.