Skip to content

Commit c2d8516

Browse files
authored
Merge pull request #155 from hummingbot/update-install-docs
doc/update installation
2 parents 86c440d + 41e7773 commit c2d8516

File tree

2 files changed

+70
-110
lines changed

2 files changed

+70
-110
lines changed

INSTALLATION.md

Lines changed: 63 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,41 @@ This repository is maintained by Hummingbot Foundation as a companion for users
33

44
## Requirements
55

6-
* 8 GB memory or more (On AWS, this is a `t2.large` instance)
7-
* Linux / Debian / MacOS
6+
Cloud Server or local machine
87

9-
## Installation
8+
* Minimum of at least 2vCPU and 8 GB memory or more (On AWS, this is a `t2.large` instance)
9+
* Linux / MacOS / Windows*
10+
11+
* For Windows users, make sure to install WSL2 as well as a Linux distro like Ubuntu and run the commands listed below in a Linux terminal and **NOT** in the Windows Command prompt or Powershell.
12+
13+
## Installation
14+
15+
16+
### Method 1 - Deploy Repo
17+
18+
This is the **recommended** install procedure for normal users
19+
20+
1 - Install dependencies:
21+
22+
* [Docker Engine](https://docs.docker.com/engine/install/ubuntu/)
23+
24+
2 - Clone repo and navigate to the created directory
25+
```bash
26+
git clone https://github.com/hummingbot/deploy.git
27+
cd deploy
28+
```
29+
30+
3 - Run the provided bash script
31+
```bash
32+
bash setup.sh
33+
```
34+
35+
36+
Proceed to the **Launch Dashboard** section
37+
38+
### Method 2 - Source
39+
40+
This method is only recommended if you are a developer and want to make changes to the code.
1041

1142
1 - Install dependencies:
1243

@@ -21,7 +52,7 @@ cd dashboard
2152

2253
3 - Create `conda` environment and install dependencies
2354
```bash
24-
make env_create
55+
make install
2556
```
2657

2758
4 - Activate the isolated 'conda' environment
@@ -31,123 +62,64 @@ conda activate dashboard
3162

3263
5 - Start the dashboard
3364
```bash
34-
streamlit run main.py
65+
make run
3566
```
36-
## Enable Authentication
37-
38-
1 - Locate the `config.py` file in the /dashboard folder
39-
40-
2 - Open the file using a text editor
41-
42-
3 - Modify the `AUTH_SYSTEM_ENABLED` variable and set this to `True` to enable. By default this is set to `False`
43-
44-
## Configure Credentials for Authentication
4567

46-
### Method 1: Using hasher_generate
68+
Don't forget to run the **Backend-API** and **Broker** separately for this to work
4769

48-
1 - Update the Environment
49-
50-
Ensure that you have the latest version of the project and reinstall the conda environment if needed.
51-
52-
2 - Generate Hashed Password
53-
54-
Open a Python terminal and utilize hasher_generate from Streamlit to generate a hashed password. Example code:
70+
Proceed to the **Launch Dashboard** section
5571

56-
```
57-
import streamlit_authenticator as st_auth
58-
hashed_password = st_auth.Hasher("YOUR_PLAIN_TEXT_PASSWORD").generate()[0]
59-
print(hashed_password)
60-
```
72+
## Launch the Dashboard
6173

62-
3 - Edit the Credentials YAML File
74+
Open a web browser and navigate to <https://localhost:8501> to view the Dashboard.
6375

64-
Locate the credentials YAML file in the root directory.
65-
Edit the file by inserting the generated hashed password from Step 2.
76+
If you are using a cloud server or VPS, replace localhost with the IP of your server. You may need to edit the firewall rules to allow inbound connections to the necessary ports.
6677

67-
4 - Accessing the Dashboard
68-
69-
Run the Hummingbot Dashboard project.
70-
Use the username and the plain text password (used in Step 2) to log in to the dashboard.
7178

72-
5 - Logging Out
73-
74-
To log out, navigate to the dashboard and select 'Logout'.
75-
76-
77-
### Method 2: Using Pre-Authorized Emails for User Registration
78-
79-
1 - Update the Environment
79+
## Updating
8080

81-
As in Method 1, ensure your conda environment and project version are up-to-date.
81+
Before updating, make sure to stop any running instances first
8282

83-
2 - Whitelist Emails
83+
### Deploy Repo
8484

85-
In the credentials YAML file, add the emails of users who will be pre-authorized to register and create their credentials.
85+
To update - make sure you are in the `deploy` folder then run the bash script
8686

87-
```
88-
pre_authorized_emails:
89-
90-
91-
```
87+
```
88+
bash setup.sh
89+
```
9290

93-
3 - User Registration
91+
This will pull any latest images and recreate the Docker containers.
9492

95-
Direct users to the Hummingbot Dashboard.
96-
Users should select 'Register' and enter one of the pre-authorized email addresses.
97-
They will choose their own username and password during registration.
98-
99-
4 - First-Time Login
100-
101-
Users log in with their chosen username and password.
102-
The dashboard will hash and store their credentials automatically.
93+
### Source
10394

104-
5 - Logging Out
105-
106-
Similar to Method 1, users can log out by navigating to the dashboard and selecting 'Logout'.
95+
To update the `dashboard` source for latest version, run:
96+
```
97+
cd dashboard
98+
git pull
99+
```
107100

108-
### Additional Notes
101+
Once updated, start up the dashboard again:
109102

110-
- Video instruction link - https://drive.google.com/file/d/17ecd2aWHZCyuK5Etcv8AZwXMw2B-1sJG/view?usp=share_link
111-
- Users created through Method 2 (Pre-Authorized Emails) will have their hashed passwords automatically generated and stored.
112-
- Always ensure the secure handling and storage of credentials.
113-
- Utilize the 'Logout' feature to secure information and restrict access to the dashboard when it is not in use.
103+
```
104+
make run
105+
```
114106

115-
## Updating
107+
To update the `dashboard` environment, run
116108

117-
To update the `dashboard` environment for changes to dependencies defined in `environment.yml`, remove the environment and re-create it:
118109
```
119110
make env_remove
120111
make env_create
121112
```
122113

123-
To updated the `dashboard` source for latest version, run:
124-
```
125-
cd dashboard
126-
git pull
127-
```
114+
This will remove the `conda` environment and recreate it.
128115

129116
## Troubleshooting
130117

118+
For Dashboard issues, please open a ticket on our Dashboard [Github page](https://github.com/hummingbot/dashboard) or post in the `#hummingbot-deploy` channel in [Discord](https://discord.gg/hummingbot)
119+
131120
### Docker permissions
132121

133122
If you get an error like `Permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock`, run this command to enable Docker permissions:
134123
```
135124
sudo chmod 6666 /var/run/docker.sock
136125
```
137-
138-
### Sym-link data directory
139-
140-
To use the [Strategy Performance page](https://github.com/hummingbot/dashboard/wiki/%F0%9F%9A%80-Strategy-Performance), you need to establish a symbolic link to the `data` directory of your running Hummingbot instance:
141-
142-
The `data` directory differs for Docker versus Source installed Hummingbot:
143-
* Docker installed: `/path/to/hummingbot/hummingbot_files/data`
144-
* Source installed: `/path/to/hummingbot/data`
145-
146-
Create a symlink to your Hummingbot `/data` directory
147-
```bash
148-
# replace `/path/to/hummingbotdata` with the actual path
149-
ln -s /path/to/hummingbotdata data
150-
151-
# if you need to remove the symlink
152-
unlink data
153-
```

README.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,24 @@
11
# Hummingbot Dashboard
22

3-
Hummingbot Dashboard is an open-source application designed to assist in the creation, backtesting, and optimization of a wide variety of algorithmic trading strategies. Once refined, these strategies can be deployed as [Hummingbot](https://github.com/hummingbot/hummingbot) instances in either paper trading or live trading modes, providing a seamless transition from strategy formulation to actual trading execution.
3+
Hummingbot Dashboard is an open-source application designed to assist in the creation, backtesting, and optimization of a wide variety of algorithmic trading strategies. Once refined, these strategies can be deployed as [Hummingbot](https://github.com/hummingbot/hummingbot) instances in live trading modes, providing a seamless transition from strategy formulation to actual trading execution.
44

55
## Features
66

77
- **Bot Orchestration**: Deploy and manage multiple instances of Hummingbot
88
- **Strategy Backtesting and Optimization**: Evaluate the performance of your strategies against historical data and optimize them with Optuna
99
- **One-Click Deployment**: Seamlessly deploy your strategies as Hummingbot instances for paper or live trading.
1010
- **Performance Analysis Monitoring**: Monitor and analyze the performance of your deployed strategies.
11-
- **Secure Credentials**: Restrict access to whitelisted users
11+
- **Credential Management**: Create and manage separate accounts for API keys
1212

13-
## Tutorial
14-
15-
Get a comprehensive understanding of Hummingbot Dashboard by exploring our introductory video playlist. These videos will guide you through the various features and functionalities:
16-
17-
1. [Introduction to Dashboard](https://www.youtube.com/watch?v=a-kenMqRB00&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=1)
18-
2. [Setting up the Environment](https://www.youtube.com/watch?v=AbezIhb6iJg&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=2)
19-
3. [Managing Credentials](https://www.youtube.com/watch?v=VmlD_WQVe4M&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=3)
20-
4. [Using the Master Bot Profile](https://www.youtube.com/watch?v=MPQTnlDXPno&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=4)
21-
5. [Deploying Bots and Running Strategies](https://www.youtube.com/watch?v=915E-C2LWdg&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=5)
22-
6. Analyzing Strategy Performance (coming soon)
23-
7. [Controllers, Backtesting, and Optimization](https://www.youtube.com/watch?v=bAi2ok7_boo&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=6)
24-
8. [Deploying Best Strategies from Backtests](https://www.youtube.com/watch?v=BJf3ml-9JIQ&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=7)
25-
9. [Conclusions and Next Steps](https://www.youtube.com/watch?v=ug_SSZb2HYE&list=PLDwlNkL_4MMf0Ifvj-HLuQ_Jtf7OV6uzW&index=8)
26-
2713
## Documentation
2814

2915
For detailed instructions and further information, visit our [documentation page](https://hummingbot.org/dashboard/).
3016

3117
## Installation
3218

33-
Currently, Dashboard should be installed from source via the process below. In the future, we aim to support a simpler,Docker-based installation process as well.
19+
Currently, we recommend users to install Dashboard using the **[Deploy repo](https://github.com/hummingbot/deploy)** instead as this will automatically launch Dashboard along with the needed components in their own Docker containers.
20+
21+
If you are a developer, and want to make changes to the code then we recommend using the Source installation below - please note that you will also need to launch the Backend API and Broker separately (either through source install or through Docker).
3422

3523
1. **Install Dependencies**:
3624
- Docker Engine
@@ -44,7 +32,7 @@ Currently, Dashboard should be installed from source via the process below. In t
4432

4533
3. **Create Conda Environment and Install Dependencies**:
4634
```bash
47-
make env_create
35+
make install
4836
```
4937

5038
4. **Activate the Isolated 'conda' Environment**:
@@ -54,7 +42,7 @@ Currently, Dashboard should be installed from source via the process below. In t
5442

5543
5. **Start the Dashboard**:
5644
```bash
57-
streamlit run main.py
45+
make run
5846
```
5947

6048
For more detailed instructions on how to install and update the dashboard, refer to [INSTALLATION.md](INSTALLATION.md).

0 commit comments

Comments
 (0)