The Bitshares Astro UI is an ElysiaJS API hosted AstroJS web application for Bitshares DEX operation creation; it aims to be as evergreen as possible, using cutting edge technologies to improve Bitshares DEX user experience.
If using windows 11, you must first install WSL, this installs the ubuntu windows linux subsystem, enabling you to run linux applications (the ElysiaJS API) in the BUN.JS runtime.
Once you've installed WSL and reset your computer, you should then install Bun.JS, as it's required instead of Node.JS
Once Bun is installed, launch a powershell terminal in a folder you want to store the web app, then run these commands:
git clone [email protected]:BTS-CM/beet_api.git
bun run freshDataFetch
bun run constructUI
bun run compile
The above commands fetch the Bitshares Beet API repo (the ElysiaJS API), launches the windows linux subsystem, installs the required packages using the BUN package manager, fetches the required data and AstroUI DIST contents before finally compiling to an executable file titled
Now that you've compiled the Astro UI + ElysiaJS API into the exectutable
beet_api, you can run the following command within the WSL powershell terminal:
This will output the following message:
Elysia is running at localhost:8080
You're now running the ElysiaJS API web server, simply navigate to
http://localhost:8080/ using your web browser of choice!
Don't forget to download the latest Bitshares BEET wallet for use with the AstroJS DEX UI via deeplinks and local JSON file based operation prompts.
If you are interested in hosting this for others to use, any linux web server should suffice as long as it supports the Bun.JS runtime. All you'd need to do is to use a reverse web proxy server such as nginx to route the
localhost:8080 web app to an external port on the web server behind an SSL certificate.
Interested in how it all works? Check out these repositories:
Don't forget to click the ⭐ button to like the github repos above!
Don't have a Bitshares account? Make one today!