serum-dex-ui icon indicating copy to clipboard operation
serum-dex-ui copied to clipboard

Document how to run on a localnetwork

Open armaniferrante opened this issue 4 years ago • 4 comments

We should document how to run this on a local network, preferably with a simple script to build and deploy everything.

armaniferrante avatar Dec 03 '20 02:12 armaniferrante

Ok, so I'm working through this right now.

Was able to get things up and running without much trouble, just need to get the TV library and make sure you prepend /* eslint-disable no-unused-expressions */ to src/charting_library/charting_library.esm.js.

dahifi avatar Sep 09 '21 17:09 dahifi

The following will get the front-end up and running. Assuming you have access to the TV library.

git clone [email protected]:project-serum/serum-dex-ui.git && cd serum-dex-ui
git clone [email protected]:tradingview/charting_library.git 

cp ./charting_library/charting_library ./src/ -r
echo -e "/* eslint-disable no-unused-expressions */ \n$(cat src/charting_library/charting_library.esm.js)" > src/charting_library/charting_library.esm.js
cp ./charting_library/charting_library ./public/ -r
cp ./charting_library/datafeeds ./public/ -r

yarn
npx browserslist@latest --update-db\n
yarn start

Charts will not work without as they rely on Bonfida's paid data feed. There are 3rd party repos that can index Serum market history, but I'm not sure what the official option is.

dahifi avatar Sep 21 '21 02:09 dahifi

@dahifi I am not able to add market on running both "serum-dex" and "serum-dex-ui" locally. I am getting timeout issue

Tejas-Teju avatar Mar 29 '22 08:03 Tejas-Teju