This is a proof-of-concept project of smart farming IOT server app. The goals is to proof that it is feasible to build a server application to handle requests from microcontroller devices using event-driven architecture.
Since microcontroller has minimum resource and possibility of unstable connection to other device, we need to build an architecture that require minimum network transmition between microcontroller to server which will improve the stability and reliability of the both devices.
- Golang as the server application
- Eclipse-MQTT as the message broker
- PostgreSQL as the persistent data storage
- Clone this repository
- Ask repository owner for the needed files
- App configuration
- Environment Variables
- Mosquitto config
- For the first run, execute
./script/init-deps.sh
ormake init-deps
. This will run all dependencies - Run
go run internal/*.go
ormake run
- Happy coding!