Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikelborm/metals-service
Service that give metals costs
https://github.com/nikelborm/metals-service
Last synced: 1 day ago
JSON representation
Service that give metals costs
- Host: GitHub
- URL: https://github.com/nikelborm/metals-service
- Owner: nikelborm
- License: mit
- Created: 2022-02-08T15:25:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T17:46:25.000Z (about 1 year ago)
- Last Synced: 2024-01-04T18:43:27.221Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
Server expect process env variable `PORT` or if unpresent it will run on 3000 port by default
There is available only one single endpoint `/api/metalCosts`
It can be tested in any browser
```javascript
fetch('http://localhost:3000/api/metalCosts').then(res=>res.json()).then(console.log)
```And also I deployed 1 instance on heroku (it free and will disable if too much queries will be sent)
You can check it by```javascript
fetch('https://metals-service.onrender.com/api/metalCosts').then(res=>res.json()).then(console.log)
```