Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vergecurrency/verge-price-ticker
How's the price going? Well, we don't care, but our users do.
https://github.com/vergecurrency/verge-price-ticker
nodejs verge vergecurrency yarn
Last synced: about 1 month ago
JSON representation
How's the price going? Well, we don't care, but our users do.
- Host: GitHub
- URL: https://github.com/vergecurrency/verge-price-ticker
- Owner: vergecurrency
- License: apache-2.0
- Created: 2018-10-03T13:44:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T02:55:14.000Z (8 months ago)
- Last Synced: 2024-03-28T03:42:26.531Z (8 months ago)
- Topics: nodejs, verge, vergecurrency, yarn
- Language: TypeScript
- Size: 441 KB
- Stars: 2
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## VERGE Price listings
##### Motivation:
_A webservice that fetches the current price levels for verge and serves them via the api to reduce request rates on the original services and raises the privacy and security for our users by not requiring them to access a 3rd-party api._
## Requirements
- latest Mongo DB running to cache price levels
- yarn / NPM (comes with NodeJS)
- NodeJS (>= 8.x.x)
- and an ethernet connection lol ;)## How to start
1. Run yarn / npm to install all required modules
2. you can either choose to run the prod or dev mode!
1. Production: `yarn run prod`
2. Development: `yarn run dev`
3. Then you will be able to access the service via `localhost:3000/api/v1/price/:currency`## Production hosting
The server isn't optimized for production so we have to get some messaurements to do:
- Missing GZIP when sending responses
- No HTTPS
- Caching is partially suppported
- Multi Request handling isn't supported
- Sharding isn't supportedThat's why we have to wrap this services with an **NGINX server** to proxy those request to this backend service. Meanwhile this services is running as sharding service within **PM2**.