Service to periodically check whether a certain Nike (at the moment) product is available in the desired size.
- Make sure you have Go & Git installed
https://go.dev/ https://git-scm.com/downloads - Clone the repository locally
- Install dependencies
go mod tidy
- Create an .env file in the root of the project and populate the following variables
FROM_EMAIL=
*Email from which the notification will be sent
FROM_PASS=
*Special password for that goes along with your FROM_EMAIL value. This is not your usual Gmail password. If you are using Gmail, you generate it from the google accounts page: 'myaccount.google.com/u/4/apppasswords'
TO_EMAIL=
*Email the notification will be sent to
PRODUCT_LINK=
*Actual page url for a nike product from the official nike site (www.nike.com)
SIZE_US=
*Size you're looking for in US terms
- From there on you can just run
go run .
to start the service or
go build
to create an executable to run in one click
*Make sure that you have the .env file in the same directory as the executable otherwise the service will crash