Simple backend application to verify and collect customers emails.
The app working in two phases:
-
/notify
-- handlePOST
request withemail
andname
fields. Calculate hash from email and secret, create verification link, send email to recipient with verification link using AWS SES. -
/customer
-- handlePOST
request withemail
,name
andp
fields. Calculate hash from email and secret, compare with paylode. On success store data in database.
Use sqlite to store data.
Golang version 1.10
Customer have next fields:
- ID
- Name
git clone git@github.com:mikhsol/email-collector.git
- For dev purposes
go build
- For production
go build -ldflags "-s -w"
./email-collector
go test