https://github.com/bradford-hamilton/temperature-logger
- quick and simple server for capturing temperature data fromDependencies
- Be sure to have Go (1.20+)
- Be sure to have postgres running locally
Database
- Create db user with
CREATE USER bt_data_server_user;
- Set up development db with
createdb bt_data_server_dev
- Run migration:
psql -U bt_data_server_user -d bt_data_server_dev -a -f internal/storage/migrations/schema.sql
Usage
Development
go run cmd/server/main.go
Testing
Standard:
go test ./...