https://github.com/nikelborm/metals-service
Service that give metals costs
https://github.com/nikelborm/metals-service
Last synced: 4 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-27T20:23:38.000Z (about 1 year ago)
- Last Synced: 2025-01-07T19:56:27.780Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
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)
```