codacus commited on
Commit
1398344
·
1 Parent(s): a1e902f

docs: updated setup guide to have more detailed instructions

Browse files
README.md CHANGED
@@ -74,112 +74,206 @@ https://thinktank.ottomator.ai
74
 
75
  If you're new to installing software from GitHub, don't worry! If you encounter any issues, feel free to submit an "issue" using the provided links or improve this documentation by forking the repository, editing the instructions, and submitting a pull request. The following instruction will help you get the stable branch up and running on your local machine in no time.
76
 
77
- ### Prerequisites
78
 
79
- 1. **Install Git**: [Download Git](https://git-scm.com/downloads)
80
- 2. **Install Node.js**: [Download Node.js](https://nodejs.org/en/download/)
81
 
82
- - After installation, the Node.js path is usually added to your system automatically. To verify:
83
- - **Windows**: Search for "Edit the system environment variables," click "Environment Variables," and check if `Node.js` is in the `Path` variable.
84
- - **Mac/Linux**: Open a terminal and run:
85
- ```bash
86
- echo $PATH
87
- ```
88
- Look for `/usr/local/bin` in the output.
89
 
90
- ### Clone the Repository
91
 
92
- Clone the repository using Git:
93
 
94
- ```bash
95
- git clone -b stable https://github.com/stackblitz-labs/bolt.diy
96
- ```
97
 
98
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
 
100
- ## Run the Application
101
 
102
- ### Option 1: Without Docker
 
 
 
103
 
104
- 1. **Install Dependencies**:
105
- ```bash
106
- pnpm install
107
- ```
108
- If `pnpm` is not installed, install it using:
109
- ```bash
110
- sudo npm install -g pnpm
111
- ```
112
 
113
- 2. **Start the Application**:
114
- ```bash
115
- pnpm run dev
116
  ```
117
- This will start the Remix Vite development server. You will need Google Chrome Canary to run this locally if you use Chrome! It's an easy install and a good browser for web development anyway.
118
 
119
- ### Option 2: With Docker
 
 
120
 
121
- #### Prerequisites
122
- - Ensure Git, Node.js, and Docker are installed: [Download Docker](https://www.docker.com/)
123
 
124
- #### Steps
 
125
 
126
- 1. **Build the Docker Image**:
127
 
128
- Use the provided NPM scripts:
129
- ```bash
130
- npm run dockerbuild
131
- ```
132
 
133
- Alternatively, use Docker commands directly:
134
- ```bash
135
  docker build . --target bolt-ai-development
136
- ```
 
 
 
 
 
137
 
138
- 2. **Run the Container**:
139
- Use Docker Compose profiles to manage environments:
140
- ```bash
141
- docker-compose --profile development up
142
- ```
143
 
144
- - With the development profile, changes to your code will automatically reflect in the running container (hot reloading).
145
 
146
- ---
147
 
148
- ### Entering API Keys
149
 
150
- All of your API Keys can be configured directly in the application. Just selecte the provider you want from the dropdown and click the pencile icon to enter your API key.
151
 
152
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
154
- ### Update Your Local Version to the Latest
 
 
 
155
 
156
- To keep your local version of bolt.diy up to date with the latest changes, follow these steps for your operating system:
157
 
158
- #### 1. **Navigate to your project folder**
159
- Navigate to the directory where you cloned the repository and open a terminal:
 
 
160
 
161
- #### 2. **Fetch the Latest Changes**
162
- Use Git to pull the latest changes from the main repository:
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  ```bash
165
- git pull origin main
 
166
  ```
167
 
168
- #### 3. **Update Dependencies**
169
- After pulling the latest changes, update the project dependencies by running the following command:
 
 
170
 
 
171
  ```bash
172
- pnpm install
173
  ```
174
 
175
- #### 4. **Run the Application**
176
- Once the updates are complete, you can start the application again with:
 
 
177
 
 
178
  ```bash
179
  pnpm run dev
180
  ```
181
 
182
- This ensures that you're running the latest version of bolt.diy and can take advantage of all the newest features and bug fixes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
 
184
  ---
185
 
 
74
 
75
  If you're new to installing software from GitHub, don't worry! If you encounter any issues, feel free to submit an "issue" using the provided links or improve this documentation by forking the repository, editing the instructions, and submitting a pull request. The following instruction will help you get the stable branch up and running on your local machine in no time.
76
 
77
+ Let's get you up and running with the stable version of Bolt.DIY!
78
 
79
+ ## Quick Download
 
80
 
81
+ [![Download Latest Release](https://img.shields.io/github/v/release/stackblitz-labs/bolt.diy?label=Download%20Bolt&sort=semver)](https://github.com/stackblitz-labs/bolt.diy/releases/latest/download/bolt.diy.zip) Click here to download the latest version!
 
 
 
 
 
 
82
 
83
+ ## Prerequisites
84
 
85
+ Before you begin, you'll need to install two important pieces of software:
86
 
87
+ ### Install Node.js
 
 
88
 
89
+ Node.js is required to run the application.
90
+
91
+ 1. Visit the [Node.js Download Page](https://nodejs.org/en/download/)
92
+ 2. Download the "LTS" (Long Term Support) version for your operating system
93
+ 3. Run the installer, accepting the default settings
94
+ 4. Verify Node.js is properly installed:
95
+ - **For Windows Users**:
96
+ 1. Press `Windows + R`
97
+ 2. Type "sysdm.cpl" and press Enter
98
+ 3. Go to "Advanced" tab → "Environment Variables"
99
+ 4. Check if `Node.js` appears in the "Path" variable
100
+ - **For Mac/Linux Users**:
101
+ 1. Open Terminal
102
+ 2. Type this command:
103
+ ```bash
104
+ echo $PATH
105
+ ```
106
+ 3. Look for `/usr/local/bin` in the output
107
+
108
+ ## Running the Application
109
+
110
+ You have two options for running Bolt.DIY: directly on your machine or using Docker.
111
 
112
+ ### Option 1: Direct Installation (Recommended for Beginners)
113
 
114
+ 1. **Install Package Manager (pnpm)**:
115
+ ```bash
116
+ npm install -g pnpm
117
+ ```
118
 
119
+ 2. **Install Project Dependencies**:
120
+ ```bash
121
+ pnpm install
122
+ ```
 
 
 
 
123
 
124
+ 3. **Start the Application**:
125
+ ```bash
126
+ pnpm run dev
127
  ```
 
128
 
129
+ **Important Note**: If you're using Google Chrome, you'll need Chrome Canary for local development. [Download it here](https://www.google.com/chrome/canary/)
130
+
131
+ ### Option 2: Using Docker
132
 
133
+ This option requires some familiarity with Docker but provides a more isolated environment.
 
134
 
135
+ #### Additional Prerequisite
136
+ - Install Docker: [Download Docker](https://www.docker.com/)
137
 
138
+ #### Steps:
139
 
140
+ 1. **Build the Docker Image**:
141
+ ```bash
142
+ # Using npm script:
143
+ npm run dockerbuild
144
 
145
+ # OR using direct Docker command:
 
146
  docker build . --target bolt-ai-development
147
+ ```
148
+
149
+ 2. **Run the Container**:
150
+ ```bash
151
+ docker-compose --profile development up
152
+ ```
153
 
 
 
 
 
 
154
 
 
155
 
 
156
 
157
+ ## Configuring API Keys and Providers
158
 
159
+ ### Adding Your API Keys
160
 
161
+ Setting up your API keys in Bolt.DIY is straightforward:
162
+
163
+ 1. Open the home page (main interface)
164
+ 2. Select your desired provider from the dropdown menu
165
+ 3. Click the pencil (edit) icon
166
+ 4. Enter your API key in the secure input field
167
+
168
+ ![API Key Configuration Interface](./docs/images/api-key-ui-section.png)
169
+
170
+ ### Configuring Custom Base URLs
171
+
172
+ For providers that support custom base URLs (such as Ollama or LM Studio), follow these steps:
173
+
174
+ 1. Click the settings icon in the sidebar to open the settings menu
175
+ ![Settings Button Location](./docs/images/bolt-settings-button.png)
176
 
177
+ 2. Navigate to the "Providers" tab
178
+ 3. Search for your provider using the search bar
179
+ 4. Enter your custom base URL in the designated field
180
+ ![Provider Base URL Configuration](./docs/images/provider-base-url.png)
181
 
182
+ > **Note**: Custom base URLs are particularly useful when running local instances of AI models or using custom API endpoints.
183
 
184
+ ### Supported Providers
185
+ - Ollama
186
+ - LM Studio
187
+ - OpenAILike
188
 
 
 
189
 
190
+
191
+ ## Setup Option 3: Git Clone (For Developers only)
192
+
193
+ This method is recommended for developers who want to:
194
+ - Contribute to the project
195
+ - Stay updated with the latest changes
196
+ - Switch between different versions
197
+ - Create custom modifications
198
+
199
+ #### Prerequisites
200
+ 1. Install Git: [Download Git](https://git-scm.com/downloads)
201
+
202
+ #### Initial Setup
203
+
204
+ 1. **Clone the Repository**:
205
  ```bash
206
+ # Using HTTPS
207
+ git clone https://github.com/stackblitz-labs/bolt.diy.git
208
  ```
209
 
210
+ 2. **Navigate to Project Directory**:
211
+ ```bash
212
+ cd bolt.diy
213
+ ```
214
 
215
+ 3. **Switch to the Main Branch**:
216
  ```bash
217
+ git checkout main
218
  ```
219
 
220
+ 4. **Install Dependencies**:
221
+ ```bash
222
+ pnpm install
223
+ ```
224
 
225
+ 5. **Start the Development Server**:
226
  ```bash
227
  pnpm run dev
228
  ```
229
 
230
+ #### Staying Updated
231
+
232
+ To get the latest changes from the repository:
233
+
234
+ 1. **Save Your Local Changes** (if any):
235
+ ```bash
236
+ git stash
237
+ ```
238
+
239
+ 2. **Pull Latest Updates**:
240
+ ```bash
241
+ git pull origin main
242
+ ```
243
+
244
+ 3. **Update Dependencies**:
245
+ ```bash
246
+ pnpm install
247
+ ```
248
+
249
+ 4. **Restore Your Local Changes** (if any):
250
+ ```bash
251
+ git stash pop
252
+ ```
253
+
254
+ #### Troubleshooting Git Setup
255
+
256
+ If you encounter issues:
257
+
258
+ 1. **Clean Installation**:
259
+ ```bash
260
+ # Remove node modules and lock files
261
+ rm -rf node_modules pnpm-lock.yaml
262
+
263
+ # Clear pnpm cache
264
+ pnpm store prune
265
+
266
+ # Reinstall dependencies
267
+ pnpm install
268
+ ```
269
+
270
+ 2. **Reset Local Changes**:
271
+ ```bash
272
+ # Discard all local changes
273
+ git reset --hard origin/main
274
+ ```
275
+
276
+ Remember to always commit your local changes or stash them before pulling updates to avoid conflicts.
277
 
278
  ---
279
 
app/commit.json CHANGED
@@ -1 +1 @@
1
- { "commit": "a9309161e95a8ed015f2f71b622fb63afdb74877", "version": "0.0.3" }
 
1
+ { "commit": "a1e902fe7963fa2008c8b30f1cb8be9281146bb2" }
docs/images/api-key-ui-section.png ADDED
docs/images/bolt-settings-button.png ADDED
docs/images/provider-base-url.png ADDED