mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-05 20:46:43 +00:00
Merge pull request #817 from dustinwloring1988/docs/more-beginner-friendly
docs: simplified setup
This commit is contained in:
commit
a9309161e9
43
README.md
43
README.md
@ -95,34 +95,6 @@ Clone the repository using Git:
|
|||||||
git clone -b stable https://github.com/stackblitz-labs/bolt.diy
|
git clone -b stable https://github.com/stackblitz-labs/bolt.diy
|
||||||
```
|
```
|
||||||
|
|
||||||
### (Optional) Configure Environment Variables
|
|
||||||
|
|
||||||
Most environment variables can be configured directly through the settings menu of the application. However, if you need to manually configure them:
|
|
||||||
|
|
||||||
1. Rename `.env.example` to `.env.local`.
|
|
||||||
2. Add your LLM API keys. For example:
|
|
||||||
|
|
||||||
```env
|
|
||||||
GROQ_API_KEY=YOUR_GROQ_API_KEY
|
|
||||||
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
|
|
||||||
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY
|
|
||||||
```
|
|
||||||
|
|
||||||
**Note**: Ollama does not require an API key as it runs locally.
|
|
||||||
|
|
||||||
3. Optionally, set additional configurations:
|
|
||||||
|
|
||||||
```env
|
|
||||||
# Debugging
|
|
||||||
VITE_LOG_LEVEL=debug
|
|
||||||
|
|
||||||
# Ollama settings (example: 8K context, localhost port 11434)
|
|
||||||
OLLAMA_API_BASE_URL=http://localhost:11434
|
|
||||||
DEFAULT_NUM_CTX=8192
|
|
||||||
```
|
|
||||||
|
|
||||||
**Important**: Do not commit your `.env.local` file to version control. This file is already included in `.gitignore`.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Run the Application
|
## Run the Application
|
||||||
@ -155,27 +127,30 @@ DEFAULT_NUM_CTX=8192
|
|||||||
|
|
||||||
Use the provided NPM scripts:
|
Use the provided NPM scripts:
|
||||||
```bash
|
```bash
|
||||||
npm run dockerbuild # Development build
|
npm run dockerbuild
|
||||||
npm run dockerbuild:prod # Production build
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, use Docker commands directly:
|
Alternatively, use Docker commands directly:
|
||||||
```bash
|
```bash
|
||||||
docker build . --target bolt-ai-development # Development build
|
docker build . --target bolt-ai-development
|
||||||
docker build . --target bolt-ai-production # Production build
|
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Run the Container**:
|
2. **Run the Container**:
|
||||||
Use Docker Compose profiles to manage environments:
|
Use Docker Compose profiles to manage environments:
|
||||||
```bash
|
```bash
|
||||||
docker-compose --profile development up # Development
|
docker-compose --profile development up
|
||||||
docker-compose --profile production up # Production
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- With the development profile, changes to your code will automatically reflect in the running container (hot reloading).
|
- With the development profile, changes to your code will automatically reflect in the running container (hot reloading).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### Entering API Keys
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Update Your Local Version to the Latest
|
### Update Your Local Version to the Latest
|
||||||
|
|
||||||
To keep your local version of bolt.diy up to date with the latest changes, follow these steps for your operating system:
|
To keep your local version of bolt.diy up to date with the latest changes, follow these steps for your operating system:
|
||||||
|
Loading…
Reference in New Issue
Block a user