- Install
go
and postgres
.
- Download the project and copy the configuration file:
go get github.com/EFForg/starttls-scanner
cd $GOPATH/github.com/EFForg/starttls-scanner
`cp .env.example .env`
- Edit
.env
with your postgres credentials and any other changes. You can also store this in the environment.
- Ensure
postgres
is running, then run db/scripts/init_db.sql
in the appropriate postgres DB in order to initialize your database.
- Build the scanner and start serving requests:
go build
./starttls-scanner
cp .env.example .env
docker-compose build
docker-compose up
# Service tests
go test -v
# Database tests
go test ./db -v