Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 807 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 807 Bytes

api.horse.link

NodeJS API for horse link https://api.horse.link

Introduction

This project allows users to create a signed data to add to Horse Link dapps.

API

The api returns market odds, along with other properities such as expiry and nonce. Each subsequent request is resigned by the market owners key.

Market ID

The market ID is an arbitary identify

Starting

cp .env.development .env
yarn install
yarn start

Building docker

docker container ls -a
docker build -t horselinkapi .
docker run -p 49160:3000 -d horselinkapi

or from Docker

docker run -it --rm -d -p 127.0.0.1:8080:80 --name web -v ~/GitHub/horse-link/api.horse.link/src:/usr/share/
nginx/html nginx

docker run -it --rm -d -p 127.0.0.1:8080:80 --name web webserver

Requests