Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malcodeman/weather-api
https://github.com/malcodeman/weather-api
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/malcodeman/weather-api
- Owner: malcodeman
- License: mit
- Created: 2018-12-18T18:36:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-23T14:13:15.000Z (about 6 years ago)
- Last Synced: 2024-10-29T11:10:42.436Z (about 2 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-repos - weather-api - Microservice for fetching current weather. (Go)
README
# Weather api
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/react/blob/master/LICENSE)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)Keep in mind that `GetLocation` method won't work as expected when deployed because it will fetch the location of the server, not client.
This project serves as proxy server for `Dark Sky API` because they disable cors as a [security precaution](https://darksky.net/dev/docs/faq).
## Table of Contents
- [Usage](#usage)
- [License](#license)## Usage
.env file should look like this:
```
DARKSKY_API_KEY=123
IPSTACK_API_KEY=123
PORT=5000
```without docker:
```
go run main.go
```or with docker:
```
docker build -t .
docker run -p 5000:5000
```## License
This project is [MIT licensed](./LICENSE).