Merge branch 'main' into docs/updated-docs
Browse files- README.md +157 -72
- app/commit.json +1 -1
- docs/images/api-key-ui-section.png +0 -0
- docs/images/bolt-settings-button.png +0 -0
- docs/images/provider-base-url.png +0 -0
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 |
-
|
91 |
|
92 |
-
|
93 |
-
2. **Install Node.js**: [Download Node.js](https://nodejs.org/en/download/)
|
94 |
|
95 |
-
|
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 |
-
|
106 |
|
107 |
-
|
108 |
|
109 |
-
|
110 |
-
git clone -b stable https://github.com/stackblitz-labs/bolt.diy
|
111 |
-
```
|
112 |
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
-
##
|
116 |
|
117 |
-
|
118 |
|
119 |
-
1
|
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 |
-
|
129 |
-
```bash
|
130 |
-
|
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 |
-
|
|
|
|
|
|
|
135 |
|
136 |
-
|
137 |
-
|
|
|
|
|
138 |
|
139 |
-
|
140 |
|
141 |
-
|
142 |
|
143 |
-
|
144 |
-
```bash
|
145 |
-
npm run dockerbuild
|
146 |
-
```
|
147 |
|
148 |
-
|
149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
docker build . --target bolt-ai-development
|
151 |
-
```
|
152 |
|
153 |
-
2. **Run the Container**:
|
154 |
-
|
155 |
-
|
156 |
-
|
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 |
-
|
166 |
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
-
|
|
|
170 |
|
171 |
-
|
|
|
|
|
|
|
172 |
|
173 |
-
|
174 |
-
Navigate to the directory where you cloned the repository and open a terminal:
|
175 |
|
176 |
-
|
177 |
-
|
|
|
|
|
178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
```bash
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
```
|
182 |
|
183 |
-
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
```bash
|
187 |
pnpm install
|
188 |
```
|
189 |
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
|
|
|
|
|
|
|
|
|
|
201 |
|
202 |
-
|
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 |
+
[](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 |
+

|
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 |
+

|
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 |
+

|
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": "
|
|
|
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
![]() |