Domain object i.e key concepts e.g city, temperature etc are made stateless and are defined in the top level core
package
When top level interface are modified go generate
is handy to rebuild mocks struct
Feature documentation
Each feature should preferably have a FEATURE.md
which
documents its behaviors, expectations, concepts, key
entities and entry points.
Here is the list of features:
- Make sure that Golang is installed, the mininum required is currently 1.12.
- To run migrations ensure golang-migrate is installed, migration guide
- Migration guide
- Create
.env
file using.env.example
- Start the app with:
./run-local-app.sh
You should see something similiar:
INFO[0000] Starting the Weather Service!
INFO[0000] COMMIT:
INFO[0000] BRANCH:
INFO[0000] Connecting to postgres
INFO[0000] Connected to postgres
INFO[0000] Registering events manager
There are two test coverage
- Datastore test: for testing database query and insertation
- Routes test: end to end test for rest endpoint