walez / weather-monster

🐲weather

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

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:

Installation

  • 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

Starting App

  • 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

Testing

There are two test coverage

  • Datastore test: for testing database query and insertation
  • Routes test: end to end test for rest endpoint

Links & Resources

About

🐲weather


Languages

Language:Go 97.9%Language:TSQL 2.0%Language:Shell 0.1%