mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
Add Deploy to Heroku button
This commit is contained in:
parent
cf373f3efb
commit
200d10122a
1
Procfile
Normal file
1
Procfile
Normal file
@ -0,0 +1 @@
|
||||
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
|
@ -1,10 +1,10 @@
|
||||
# Frankfurter
|
||||
|
||||
[![Travis](https://travis-ci.org/hakanensari/frankfurter.svg)](https://travis-ci.org/hakanensari/frankfurter)
|
||||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hakanensari/frankfurter)
|
||||
|
||||
Frankfurter is a free and open source API for current and historical foreign exchange rates. It tracks data published by the European Central Bank. Rates are updated around 4PM CET every working day.
|
||||
|
||||
A public instance of the API is hosted on `https://frankfurter.app`. Alternatively, you can self-host a private instance using the provided Docker image.
|
||||
We host a public instance on `https://frankfurter.app`. Alternatively, you can deploy a private instance using the provided Docker image.
|
||||
|
||||
|
||||
## Examples
|
||||
@ -91,3 +91,5 @@ docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull
|
||||
```
|
||||
|
||||
Within a few minutes, you will access the API at `https://yourdomain.com/`.
|
||||
|
||||
[![Travis](https://travis-ci.org/hakanensari/frankfurter.svg)](https://travis-ci.org/hakanensari/frankfurter)
|
||||
|
18
app.json
18
app.json
@ -1,26 +1,16 @@
|
||||
|
||||
{
|
||||
"name": "Frankfurter",
|
||||
"description": "A foreign exchange rates and currency conversion API",
|
||||
"description": "Foreign exchange rates and currency conversion API",
|
||||
"website": "https://frankfurter.app",
|
||||
"repository": "https://github.com/hakanensari/frankfurter",
|
||||
"logo": "https://frankfurter.app/images/frankfurter.png",
|
||||
"keywords": [
|
||||
"forex",
|
||||
"foreign exchange rates",
|
||||
"exchange rate",
|
||||
"currency",
|
||||
"api"
|
||||
"conversion"
|
||||
],
|
||||
"env": {
|
||||
"APP_ENV": {
|
||||
"description": "The app environment.",
|
||||
"value": "production",
|
||||
}
|
||||
},
|
||||
"addons": [
|
||||
"heroku-postgresql"
|
||||
],
|
||||
"scripts": {
|
||||
"postdeploy": "bundle exec rake db:migrate rates:ninety_days"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -26,11 +26,12 @@ body {
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: 2em;
|
||||
margin-bottom: 4em;
|
||||
text-align: center;
|
||||
|
||||
.logo {
|
||||
img {
|
||||
padding-bottom: 1em;
|
||||
margin-bottom: 1em;
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
@ -39,7 +40,6 @@ body {
|
||||
h1,
|
||||
h2 {
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@ -48,7 +48,25 @@ body {
|
||||
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
margin-bottom: 2em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.btn {
|
||||
background-color: #002B36;
|
||||
color: #2AA198;
|
||||
|
||||
&:hover {
|
||||
background-color: #001A25;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.fas,
|
||||
strong {
|
||||
color: #6EE5DB;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -64,6 +82,10 @@ body {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
code:not(.hljs) {
|
||||
@ -71,9 +93,9 @@ code:not(.hljs) {
|
||||
}
|
||||
|
||||
.hljs {
|
||||
border-radius: 3px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
padding: 10px;
|
||||
padding: 9px 12px;
|
||||
|
||||
&.http {
|
||||
color: #2D4A53;
|
||||
|
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="Frankfurter is an open source API for current and historical foreign exchange rates. It tracks rates published daily by the European Central Bank.">
|
||||
<meta name="description" content="Frankfurter is a free and open source API for currency conversion and historical exchange rates.">
|
||||
<title>Foreign exchange rates and currency conversion API | Frankfurter</title>
|
||||
<link rel="canonical" href="https://frankfurter.app/">
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/solarized-dark.min.css">
|
||||
@ -30,22 +30,22 @@
|
||||
<div class="container">
|
||||
<ul class="navbar-nav mx-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://github.com/hakanensari/frankfurter">
|
||||
<a class="nav-link" href="https://github.com/hakanensari/frankfurter" target="_blank">
|
||||
<i class="fab fa-github fa-fw fa-lg"></i><span class="d-none d-sm-inline">Source</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://hub.docker.com/r/hakanensari/frankfurter/">
|
||||
<a class="nav-link" href="https://hub.docker.com/r/hakanensari/frankfurter/" target="_blank">
|
||||
<i class="fab fa-docker fa-fw fa-lg"></i><span class="d-none d-sm-inline">Image</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html">
|
||||
<a class="nav-link" href="https://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html" target="_blank">
|
||||
<i class="fas fa-file-alt fa-fw fa-lg"></i><span class="d-none d-sm-inline">Data sets</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://status.frankfurter.app/">
|
||||
<a class="nav-link" href="https://status.frankfurter.app/" target="_blank">
|
||||
<i class="fas fa-signature fa-fw fa-lg"></i><span class="d-none d-sm-inline">Status</span>
|
||||
</a>
|
||||
</li>
|
||||
@ -59,6 +59,9 @@
|
||||
</div>
|
||||
<h1>Frankfurter</h1>
|
||||
<h2>Foreign exchange (forex) rates and currency conversion API</h2>
|
||||
<a href="https://heroku.com/deploy?template=https://github.com/hakanensari/frankfurter" target="_blank">
|
||||
<button type="button" class="btn btn-ssm"><i class="fas fa-arrow-circle-up fa-fw"></i> <strong>Deploy</strong> to Heroku</span></button>
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<div class="content container">
|
||||
|
Loading…
Reference in New Issue
Block a user