Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/xie-hui/crypto-visualizer-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/xie-hui/crypto-visualizer-api

  • v0.0.0-20190929082300-bacefa1bb6ed
  • Source
  • Go
  • Socket score

Version published
Created
Source

Crypto-Visualizer-API

The backend API Gateway (reverse proxy) for Cypto-Visualizer

usage:

All AJAX requests toward https://crypto-visualizer-api.herokuapp.com/ will forward to https://min-api.cryptocompare.com/data/ with api_key set.

example: request to https://crypto-visualizer-api.herokuapp.com/price?fsym=BTC&tsyms=USD,JPY,EUR will equal to https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR?api_key=XXXXXXXXXXXXXXXXX

backend

The data is fetched from cyptocompare api and reverse-proxy as API gateway. You should create your own .env in the root folder. example:

PROXY_URL=https://min-api.cryptocompare.com/data/
PORT=8000
SUFFIX=api_key=XXXXXXXXXXXXXXXXXXXX

after that, run source .env to load the variable into environment

deployment

This api service uses Heroku for deployment. some tools and command used:

  • heroku config: quickly push/pull environment variables to/from heroku
  • Godep: automatic generate dependencies for go project
  • heroku command:
    • Login: heroku login
    • Create a new heroku project: heroku create [yourAppName]
    • Deploy master to heroku: git push heroku master
  • a Procfile (with no extension) is required for heroku to know how to start the app. Here, web: [yourRepositoryName] will tell heroku that is app will be an http app.

FAQs

Package last updated on 29 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc