GithubHelp home page GithubHelp logo

isabella232 / bat-ratios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brave-intl/bat-ratios

0.0 0.0 0.0 1.45 MB

a server to cache and serve up exchange rates between currencies

JavaScript 98.50% Dockerfile 0.38% Shell 0.52% PLpgSQL 0.60%

bat-ratios's Introduction

bat-ratios

Server for ratios between fiats and alts

setup

git pull [email protected]:brave-intl/bat-ratios.git
yarn install

start

yarn start

test

Might need to use specific node version nvm use 14.17.0

yarn test

development

before anything else you must do the following steps

yarn run docker-build # build the containers
yarn run docker-up-dbs # bring the dbs up
yarn run docker-migrate-dbs # migrate the dbs
yarn run docker-fill-dbs # fill the dbs with data
# optionally
yarn run docker-up # brings server up
yarn run dev

to access the documentation visit /v1/documentation/

Postgres

After running

yarn run docker-migrate-up

login to the db with

psql postgres://ratios:password@localhost:5010/ratios

curling

curl -X GET \
  -H "Authorization: Bearer $(kubectl --context bsg-sandbox \
    -n ratios-staging \
    get secrets/env -o json | \
    jq -r '.data.TOKEN_LIST' | \
    base64 -d | \
    jq -j -R 'split(",")|.[0]'
  )" \
  https://ratios.bsg.bravesoftware.com/v1/history/single/fiat/EUR/2020-11-01

bat-ratios's People

Contributors

3commascapital avatar dependabot[bot] avatar evq avatar husobee avatar maikelmclauflin avatar orspetol avatar porteron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.