(Continued as project of arduino-playground-xyz
Go backend for arduino watering system
- go >=1.14
- Docker and docker-compose (or local MySql instance)
- Run MySql instance and apply schema
docker-compose up -d
(wait until mysql is started)
./scripts/execute_sql.sh scripts/create_schema.sql
- Run server
go run cmd/server/main.go config/config-test.json
or
go build cmd/server/main.go
./main config/config-test.json