LlamaFinetuneGGUF commited on
Commit
6145c60
·
unverified ·
2 Parent(s): ed5bad3 56edbc4

Merge branch 'main' into docs/updated-docs

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