Skip to content

Commit 6145c60

Browse files
Merge branch 'main' into docs/updated-docs
2 parents ed5bad3 + 56edbc4 commit 6145c60

File tree

5 files changed

+158
-73
lines changed

5 files changed

+158
-73
lines changed

README.md

Lines changed: 157 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -87,119 +87,204 @@ bolt.diy was originally started by [Cole Medin](https://www.youtube.com/@ColeMed
8787

8888
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.
8989

90-
### Prerequisites
90+
Let's get you up and running with the stable version of Bolt.DIY!
9191

92-
1. **Install Git**: [Download Git](https://git-scm.com/downloads)
93-
2. **Install Node.js**: [Download Node.js](https://nodejs.org/en/download/)
92+
## Quick Download
9493

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.
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!
10295

103-
### Clone the Repository
10496

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.
97+
## Prerequisites
10698

107-
Clone the repository using Git:
99+
Before you begin, you'll need to install two important pieces of software:
108100

109-
```bash
110-
git clone -b stable https://github.com/stackblitz-labs/bolt.diy
111-
```
101+
### Install Node.js
112102

113-
---
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
114121

115-
## Run the Application
122+
## Running the Application
116123

117-
### Option 1: Without Docker
124+
You have two options for running Bolt.DIY: directly on your machine or using Docker.
118125

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-
```
126+
### Option 1: Direct Installation (Recommended for Beginners)
127127

128-
2. **Start the Application**:
129-
```bash
130-
pnpm run dev
128+
1. **Install Package Manager (pnpm)**:
129+
```bash
130+
npm install -g pnpm
131131
```
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.
133132

134-
### Option 2: With Docker
133+
2. **Install Project Dependencies**:
134+
```bash
135+
pnpm install
136+
```
135137

136-
#### Prerequisites
137-
- Ensure Git, Node.js, and Docker are installed: [Download Docker](https://www.docker.com/)
138+
3. **Start the Application**:
139+
```bash
140+
pnpm run dev
141+
```
138142

139-
#### Steps
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/)
140144

141-
1. **Build the Docker Image**:
145+
### Option 2: Using Docker
142146

143-
Use the provided NPM scripts:
144-
```bash
145-
npm run dockerbuild
146-
```
147+
This option requires some familiarity with Docker but provides a more isolated environment.
147148

148-
Alternatively, use Docker commands directly:
149-
```bash
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:
150160
docker build . --target bolt-ai-development
151-
```
161+
```
152162

153-
2. **Run the Container**:
154-
Use Docker Compose profiles to manage environments:
155-
```bash
156-
docker-compose --profile development up
157-
```
163+
2. **Run the Container**:
164+
```bash
165+
docker-compose --profile development up
166+
```
158167

159-
- With the development profile, changes to your code will automatically reflect in the running container (hot reloading).
160168

161-
---
162169

163-
### Entering API Keys
164170

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.
171+
## Configuring API Keys and Providers
166172

167-
---
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:
168187

169-
### Update Your Local Version to the Latest
188+
1. Click the settings icon in the sidebar to open the settings menu
189+
![Settings Button Location](./docs/images/bolt-settings-button.png)
170190

171-
To keep your local version of bolt.diy up to date with the latest changes, follow these steps for your operating system:
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)
172195

173-
#### 1. **Navigate to your project folder**
174-
Navigate to the directory where you cloned the repository and open a terminal:
196+
> **Note**: Custom base URLs are particularly useful when running local instances of AI models or using custom API endpoints.
175197

176-
#### 2. **Fetch the Latest Changes**
177-
Use Git to pull the latest changes from the main repository:
198+
### Supported Providers
199+
- Ollama
200+
- LM Studio
201+
- OpenAILike
178202

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**:
179217
```bash
180-
git pull origin main
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
181225
```
182226

183-
#### 3. **Update Dependencies**
184-
After pulling the latest changes, update the project dependencies by running the following command:
227+
3. **Switch to the Main Branch**:
228+
```bash
229+
git checkout main
230+
```
231+
4. **Install Dependencies**:
232+
```bash
233+
pnpm install
234+
```
185235

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**:
186256
```bash
187257
pnpm install
188258
```
189259

190-
#### 4. **Rebuild and Start the Application**
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:
191268

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-
```
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
196276
197-
- **If not using Docker**, you can start the application as usual with:
198-
```bash
199-
pnpm run dev
200-
```
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+
```
201286

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.
287+
Remember to always commit your local changes or stash them before pulling updates to avoid conflicts.
203288

204289
---
205290

app/commit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "commit": "636f87f568a368dadc5cf3c077284710951e2488", "version": "0.0.3" }
1+
{ "commit": "ab5cde30a126f6540f0afb4d6d6e6be6a764ddca", "version": "0.0.3" }

docs/images/api-key-ui-section.png

34.7 KB
Loading
685 KB
Loading

docs/images/provider-base-url.png

165 KB
Loading

0 commit comments

Comments
 (0)