frankfurter/README.md

50 lines
1.5 KiB
Markdown
Raw Normal View History

2018-04-16 17:19:15 +02:00
# Frankfurter
2019-11-22 15:30:44 +01:00
[![Build](https://github.com/hakanensari/frankfurter/workflows/build/badge.svg)](https://github.com/hakanensari/frankfurter/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/81f8a458f29f171928f7/maintainability)](https://codeclimate.com/github/hakanensari/frankfurter/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/81f8a458f29f171928f7/test_coverage)](https://codeclimate.com/github/hakanensari/frankfurter/test_coverage)
2015-07-28 17:27:10 +02:00
2019-12-24 14:49:02 +01:00
[Frankfurter](https://www.frankfurter.app) is a free and open-source currency data API that tracks reference exchange rates published by the European Central Bank.
2018-09-11 18:59:18 +02:00
2019-12-24 14:49:02 +01:00
I host a public instance of the API at `api.frankfurter.app`.
2019-05-15 14:22:06 +02:00
## Getting Started
2019-05-15 14:22:06 +02:00
Get the latest exchange rates.
2016-04-11 15:38:28 +02:00
```http
2018-09-11 18:59:18 +02:00
GET /latest HTTP/1.1
2016-04-11 15:38:28 +02:00
```
2019-05-15 14:22:06 +02:00
Get rates for a past date.
2016-04-11 15:38:28 +02:00
```http
2018-09-11 18:59:18 +02:00
GET /2000-01-03 HTTP/1.1
```
2019-05-15 14:22:06 +02:00
Get rates for a period.
2018-09-11 18:59:18 +02:00
```http
GET /2010-01-01..2010-01-31 HTTP/1.1
2016-04-11 15:38:28 +02:00
```
2019-12-24 14:49:02 +01:00
For more examples, read the [docs](https://www.frankfurter.app/docs).
2018-09-18 14:16:10 +02:00
2019-05-15 14:22:06 +02:00
## Deployment
2018-03-17 15:28:52 +01:00
2019-12-24 14:49:02 +01:00
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hakanensari/frankfurter)
You can self-host Frankfurter with Heroku or Docker.
2016-04-11 15:38:28 +02:00
2019-05-15 14:22:06 +02:00
```bash
docker run -d -p 8080:8080 \
-e "DATABASE_URL=<postgres_url>" \
--name frankfurter hakanensari/frankfurter
```
2016-04-11 15:38:28 +02:00
2019-05-15 14:22:06 +02:00
Check out the [website](https://www.frankfurter.app/docs#deployment) for a more detailed walkthrough.
2019-12-24 14:49:02 +01:00
## Miscellaneous
Frankfurter was known as Fixer between 2012 and 2018. After selling the original domain, I relaunched under this name.