Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add host to command line #58

Open
Boyquotes opened this issue Aug 21, 2024 · 1 comment
Open

Add host to command line #58

Boyquotes opened this issue Aug 21, 2024 · 1 comment

Comments

@Boyquotes
Copy link

Hi,

Thanks for sharing your code, I seen to be a great tool for me.
I want to install on my server only accessible with public ip, and I need to don't only deploy on localhost:3000 but on 0.0.0.0:3000 too.

How can I add the host option to the command line ? The simple way is to use turbo command or add option file to the cli/ directory ?

@bludnic
Copy link
Owner

bludnic commented Aug 21, 2024

I believe that ExpressJS listens on 0.0.0.0 by default, so you should be able to access the UI at http://0.0.0.0:8000. This applies if you installed the bot via NPM.

In development, port 3000 is used for the frontend, but since the UI resides in a private repo, it's not accessible at the moment. I need to decide on the license and secure funding to continue working on the project.

For now, you can use the pre-built version from NPM, which includes the UI, or build the app yourself. However, in that case, you will only be able to interact with the bot via the CLI.

Here are the steps to build the app from the source:

  1. Install dependencies and run DB migrations:
cp .env.example .env
pnpm install
turbo run prisma:migrate
  1. Build the app:
turbo run build
  1. Interact with CLI:
# List of commands
./bin/cli.sh --help

# Start the daemon
./bin/cli.sh up

# Running Grid Bot strategy
./bin/cli.sh trade grid

See the CLI section in the README on how to connect an exchange and configure the strategy params.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants