https://github.com/kennykarnama/my-earth
https://github.com/kennykarnama/my-earth
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kennykarnama/my-earth
- Owner: kennykarnama
- Created: 2024-07-25T07:45:50.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T14:03:06.000Z (10 months ago)
- Last Synced: 2025-01-24T17:16:41.747Z (4 months ago)
- Language: Starlark
- Size: 1.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## my-earth
Simple application to provide locations' weather. Currently use MeteoSource as the data provider.
## Local development
### Bazel Setup
We use bazel as the build system.
- Install bazelisk
- Install bazel dependencies
- python3
- cclang toolchains, just to be safe, please install build-essentials
- Run bazel commands```
bazelisk build //...
```Run earth-server
```
bazelisk run //cmd/earth-server:earth-server
```Running bazelisk build will create binary of each of go package.
It also creates local docker image for:
+ earth-server
+ earth-migratorTo push the image
```
bazelisk run //cmd/earth-server:push
``````
bazelisk run //src/infra/db/migrations:push
```### Start in local
We have docker compose,
just run
```
cd infra && docker compose up -d
```Rest API will be served in port = 8080