mirror of
https://github.com/Sosokker/openweathermap-dashboard.git
synced 2025-12-18 13:44:04 +01:00
44 lines
787 B
Markdown
44 lines
787 B
Markdown
# Create Report, where does it rain?
|
|
|
|
## Usage
|
|
|
|
**Requirement**
|
|
- [Docker](https://www.docker.com/products/docker-desktop/)
|
|
- [Openweather](https://openweathermap.org/) API Key
|
|
|
|
|
|
1. Go to `docker-compose.yml` and fill Openweathermap API Key
|
|
|
|
2. Run compose up
|
|
|
|
```bash
|
|
docker compose up --build --remove-orphans --force-recreate
|
|
```
|
|
|
|
Then, go to [http://localhost:8080/report/](http://localhost:8080/report/)
|
|
|
|
---
|
|
|
|
Manually run each service
|
|
|
|
- Run Go server
|
|
```bash
|
|
cd cmd
|
|
go mod download
|
|
go run main.go
|
|
```
|
|
|
|
- Run http server
|
|
```bash
|
|
cd nginx/web
|
|
python -m http.server 8000
|
|
```
|
|
Then, go to [http://localhost:8000/](http://localhost:8000/)
|
|
|
|
|
|
## Report example
|
|
|
|

|
|

|
|

|