Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
/ beet_api Public archive

An ElysiaJS based API for generating Bitshares Beet wallet deeplinks

License

Notifications You must be signed in to change notification settings

BTS-CM/beet_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beet_api

An ElysiaJS based API for generating Bitshares Beet wallet deeplinks

First install Bun on your computer.

This API was developed using Linux on Windows via WSL.

Before running this Bitshares Beet API, you need to install the required packages:

bun upgrade
bun install

You then need to fetch the required data for the API to serve to the constructed UI.

You can either fetch it all in the one go (which might fail):

bun run refreshData

Or you can manually run each script:

For erasing existing data:

bun run eraseChainData

For fetching new data:

bun run fetchPools
bun run fetchAssets
bun run fetchDynamicData
bun run fetchIssuers
bun run fetchBitassetData
bun run fetchOffers
bun run fetchDeals
bun run fetchFees

With the required chain data in place, you can then fetch the example Astro UI for the public folder:

bun run constructUI

The above UI is optional, you can create your own application UI which queries the elysia server.

You can now run the dev server:

bun run dev

And you can now compile the beet_api into a linux executable:

bun run compile


Once the elysia server is running, navigate to:

http://localhost:8080/ to view the hosted web app


To run the compiled executable, run: ./beet_api in the WSL/Linux terminal.