LitterPriceBox is a web service that checks the price per kg of a specific brand of cat litter from various stores.
- GET /check-price?url={store_url}: Get the price per kg from the specified store URL.
- GET /swagger/*: Swagger documentation.
- Install Go.
- Clone the repository.
- Run go mod tidy to install dependencies.
- Run the server: go run cmd/server/main.go.
Deploy to Heroku using the following steps:
- heroku login
- heroku create litterpricebox
- git init
- git add .
- git commit -m "initial commit"
- heroku git:remote -a litterpricebox
- git push heroku master
- heroku open
- go run cmd/server/main.go: Run the server locally.
- swag init -g cmd/server/main.go -o docs/: Generate Swagger documentation.