Skip to content

Instantly share code, notes, and snippets.

@leex279
Created December 24, 2024 00:15
Show Gist options
  • Select an option

  • Save leex279/832246dc64f078162de1bf00997238a9 to your computer and use it in GitHub Desktop.

Select an option

Save leex279/832246dc64f078162de1bf00997238a9 to your computer and use it in GitHub Desktop.

Checklist

Pre-Requirements

Install Git from https://git-scm.com

Install Node.js LTS from https://nodejs.org

Verify node/npm installation:

node --version
npm --version

Install pnpm globally using:

npm install -g pnpm

Verify pnpm Installation:

pnpm --version

Install Microsoft Visual C++ Redistributable from this link

Installation

Ensure port 5173 (bolt.diy) is free (not in use). Use this command in cmd or PowerShell:

netstat -ano | findstr :5173

If there is no output, it is correct. If you see any output/list, then the port is in use.

  • Make sure you close the other applications running on these ports and try again.
  • Alternatively, change the port of bolt.diy (TODO).

Clone the repository:

git clone -b stable https://github.com/stackblitz-labs/bolt.diy.git

Alternative: Download the release (without git) from https://github.com/stackblitz-labs/bolt.diy/tags

Navigate to the project directory:

cd bolt.diy

Rename .env.example to .env.local:

copy .env.example .env.local

Edit .env.local and add your API keys for LLMs (optional): You can set your API keys here or you can temporarily do it later in the UI.

Install dependencies:

pnpm install

With the terminal opened in your bolt.diy directory, run the install command.

Start the development server:

pnpm run dev

Open the browser and navigate to the URL shown in the terminal (typically http://localhost:5173).

Create and Use Google API Key

Build an example Webapp with Gemini 2.0 Flash:

Build a simple landing page for bolt.diy.

Troubleshooting

Documentation available at https://stackblitz-labs.github.io/bolt.diy/

Thinktank Community available at https://thinktank.ottomator.ai/

@germanky
Copy link
Copy Markdown

thank you for sharing this list, it works!!!!

@leex279
Copy link
Copy Markdown
Author

leex279 commented Jan 31, 2025

your welcome ;)

@Idris-Smith
Copy link
Copy Markdown

thanks a lot, you make it super easy to follow!

@leex279
Copy link
Copy Markdown
Author

leex279 commented Feb 7, 2025

happy to hear that :)

@leex279
Copy link
Copy Markdown
Author

leex279 commented Feb 7, 2025

@Idris-Smith let me know if you got ideas for more videos / needed stuff ;)

@bkxxl
Copy link
Copy Markdown

bkxxl commented Feb 19, 2025

Thank you for this share got this working now .

@Real-ade
Copy link
Copy Markdown

thanks alot manh
it actually work, so easy and simple step.. manh that was really impressive... appreciate alot

@leex279
Copy link
Copy Markdown
Author

leex279 commented Feb 20, 2025

@bkxxl @Adethecreative thank you both :) ... let me now if you have ideas/need for additional videos

@perniciousbeing
Copy link
Copy Markdown

idk, i did everything you did 2x's and i get a Vite error:

C:\Users\donte\Documents\bolt.diy>pnpm dev start

bolt@0.0.6 dev C:\Users\donte\Documents\bolt.diy
node pre-start.cjs && remix vite:dev "start"

★═══════════════════════════════════════★
B O L T . D I Y
⚡️ Welcome ⚡️
★═══════════════════════════════════════★

📍 Current Version Tag: v"0.0.6"
📍 Current Commit Version: "eb4aa68"
Please wait until the URL appears here
★═══════════════════════════════════════★
Remix Vite plugin not found in Vite config
 ELIFECYCLE  Command failed with exit code

@Idris-Smith
Copy link
Copy Markdown

idk, i did everything you did 2x's and i get a Vite error:

C:\Users\donte\Documents\bolt.diy>pnpm dev start **************************************

i think this might be your problem

once everything is installed you just type in your command prompt 2 things:
--->
cd bolt.diy
--->
pnpm run dev
--->
after this it should run smoothly, just open the http://localhost:5173 in your browser

@leex279
Copy link
Copy Markdown
Author

leex279 commented Feb 26, 2025

@Idris-Smith did it now work for you? if not, open a topic in the community where we can investigate it: https://thinktank.ottomator.ai/c/bolt-diy/bolt-diy-issues-and-troubleshooting/22

Makes no sense to do it here in the comments :)

@Idris-Smith
Copy link
Copy Markdown

@leex279 lol I don't think he followed the instructions properly 😂

@Thiyagu-01
Copy link
Copy Markdown

after closing the page how to open it again

@leex279
Copy link
Copy Markdown
Author

leex279 commented Apr 5, 2025

Not sure what exactly you mean.

When restarting your PC, you need to do this again to start bolt.diy

  • go to your bolt.diy folder
  • open CMD/Terminal there again
  • run "pnpm run dev"
  • open in browser localhost:5173

@ram13-flash
Copy link
Copy Markdown

hey do we need the programs to be opened all the time when we need to use the bolt.diy?

@leex279
Copy link
Copy Markdown
Author

leex279 commented May 22, 2025

hey, when you use "pnpm run dev", yes you need the cmd open. Since the last release there is also a native desktop app. so you can use this as well (e.g. .exe on windows)

@fvrkdej
Copy link
Copy Markdown

fvrkdej commented Jun 3, 2025

Thanks, much appreciated!

@leex279
Copy link
Copy Markdown
Author

leex279 commented Jun 4, 2025

Your welcome :)

@mine-helpers
Copy link
Copy Markdown

it is working smoothly thanks alot

@mobileappmogul
Copy link
Copy Markdown

Worked like a charm sir. Thank you very much

@jnzaba
Copy link
Copy Markdown

jnzaba commented Feb 2, 2026

Tried severally always leads to this: warn Data fetching is changing to a single fetch in React Router v7
┃ You can use the v3_singleFetch future flag to opt-in early.
┃ -> https://remix.run/docs/en/2.13.1/start/future-flags#v3_singleFetch

Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19) {
errno: -4095,
code: 'EOF',
syscall: 'write'
}
 ELIFECYCLE  Command failed with exit code 1. (Any Updates please?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment