s-a-y / swap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SWAP - exchange widget

Widget for currency swap, running on top of Stellar decentralized exchange.

Live demo can be found here

Run locally

  1. npm i
  2. npm run build
  3. copy .env.example -> .env
  4. npm start
  5. http://localhost:3000/demo.html

Place on your website

<div id="exchange-widget" style="width: 250px;"></div>
<script src="https://swap.apay.io/widget/dist/exchange-widget.js"></script>
<script>
  (function() {
    var root = document.getElementById('exchange-widget');
    new ExchangeWidget('https://swap.apay.io/widget/index.html?token=<YourAPIToken>', root);
  })()
</script>

About


Languages

Language:JavaScript 51.4%Language:HTML 25.4%Language:CSS 18.8%Language:Vue 4.3%