https://github.com/simonswine/find-city-by-population
https://github.com/simonswine/find-city-by-population
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonswine/find-city-by-population
- Owner: simonswine
- Created: 2024-07-22T17:30:18.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-24T16:31:07.000Z (11 months ago)
- Last Synced: 2024-09-16T05:52:40.114Z (9 months ago)
- Language: Go
- Size: 56.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# find-city-by-population
Example go app, that can leaves room to optimize cpu / memory usage.

## Develop
Requires a golang environment and then it can be run as follows:
```
# Download city dataset locally
$ make data# After running the app, it will listen on port http://localhost:8081
$ go run ./# Run happy path test
$ make test
```## Build docker image
```
$ make build
```## Build & push docker image
```
$ make push IMAGE_PREFIX=my-docker-user IMAGE_TAG=iteration-1
```## City dataset
The dataset is from https://www.geonames.org/ and it is licensed under a Creative Commons Attribution 4.0 License.