https://github.com/idefant/exrates-api
Simple exchange rates API. With historical exchange rates. No limits
https://github.com/idefant/exrates-api
crypto-currency currency currency-api exchange exchange-api exchange-rates expressjs
Last synced: 5 months ago
JSON representation
Simple exchange rates API. With historical exchange rates. No limits
- Host: GitHub
- URL: https://github.com/idefant/exrates-api
- Owner: idefant
- License: gpl-3.0
- Created: 2022-09-27T06:05:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-10T10:47:48.000Z (about 1 year ago)
- Last Synced: 2025-05-10T11:29:15.483Z (about 1 year ago)
- Topics: crypto-currency, currency, currency-api, exchange, exchange-api, exchange-rates, expressjs
- Language: TypeScript
- Homepage: https://exrates.idefant.ru/docs/
- Size: 572 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ExRates
[](https://hub.docker.com/repository/docker/idefant/exrates-api)
[](https://exrates.idefant.ru/docs/)
A simple Exchange Rates API
Data is collected once a day from [Open Exchange Rates](https://openexchangerates.org/)
## Features
- Getting up-to-date data
- Getting rates by date
- Getting rates by period (2 routes)
- Filtering by currency code
## Production
1. Create `docker-compose.yml` with content:
```yml
services:
exrates-api:
image: idefant/exrates-api
container_name: exrates
env_file:
- .env
restart: unless-stopped
ports:
- "3000:3000"
mongo:
image: mongo
restart: always
env_file:
- .env
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
MONGO_INITDB_DATABASE: ${DB_NAME}
volumes:
- ./db:/data/db
```
2. Create `.env` and fill in similarly `.env.sample`
3. Run `docker compose up -d`
4. Open [link](https://localhost:3000/docs/) in your browser
## Development
To begin development:
1. Clone this repo
2. Create `.env` and fill in similarly `.env.sample`
3. Install dependencies with `npm install`
```sh
# Run in development mode
npm run dev
# Build app
npm run build
```
Please [Star](#) this repo by clicking on [⭐ button](#)