[GH-ISSUE #1525] [DOCS]: How to run frontend and backend in dev mode? #981

Closed
opened 2026-02-22 18:22:31 -05:00 by yindo · 2 comments
Owner

Originally created by @thiagobutignon on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1525

Description

Hey guys,

I am trying to run in dev mode the Frontend and backend. The Frontend is infinite reloading after yarn and yarn dev

could you clarify how to run it locally to make changes and collaborate to the project.

thanks

Originally created by @thiagobutignon on GitHub (May 24, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1525 ### Description Hey guys, I am trying to run in dev mode the Frontend and backend. The Frontend is infinite reloading after yarn and yarn dev could you clarify how to run it locally to make changes and collaborate to the project. thanks
yindo added the documentation label 2026-02-22 18:22:31 -05:00
yindo closed this issue 2026-02-22 18:22:31 -05:00
Author
Owner

@timothycarambat commented on GitHub (May 24, 2024):

After a clean clone the process is:

  • yarn setup - install all deps in all folders, migrates DB, and creates frontend/.env and server/.env

Next: make sure that
server/.env.development has the the keys you want set. When you edit server-side code and the backend hot-reloads anything you saved in the ENV prior will be lost and all that will remain is what is in the file. So ensure that VECTOR_DATABASE, LLM_PROVIDER, and EMBEDDING_ENGINE are all set.

frontend/.env has a single useful key. If you are building on localhost the API_BASE (server) runs on 3001 so
VITE_API_BASE='http://localhost:3001/api'

Then next all that that should be needed is from root:
yarn dev:server to run backend with hot-reloading - port :3001
yarn dev:frontend to run frontend with hot-reloading - port :3000
yarn dev:collector to run document processor with hot-reloading - port : 8888

@timothycarambat commented on GitHub (May 24, 2024): After a clean clone the process is: - `yarn setup` - install all deps in all folders, migrates DB, and creates `frontend/.env` and `server/.env` Next: make sure that `server/.env.development` has the the keys you want set. When you edit server-side code and the backend hot-reloads anything you saved in the ENV prior will be lost and all that will remain is what is in the file. So ensure that VECTOR_DATABASE, LLM_PROVIDER, and EMBEDDING_ENGINE are all set. `frontend/.env` has a single useful key. If you are building on localhost the API_BASE (server) runs on 3001 so `VITE_API_BASE='http://localhost:3001/api'` Then next all that that should be needed is from root: `yarn dev:server` to run backend with hot-reloading - port :3001 `yarn dev:frontend` to run frontend with hot-reloading - port :3000 `yarn dev:collector` to run document processor with hot-reloading - port : 8888
Author
Owner

@thiagobutignon commented on GitHub (May 24, 2024):

@timothycarambat thank you so much

@thiagobutignon commented on GitHub (May 24, 2024): @timothycarambat thank you so much
yindo changed title from [DOCS]: How to run frontend and backend in dev mode? to [GH-ISSUE #1525] [DOCS]: How to run frontend and backend in dev mode? 2026-06-05 14:38:17 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#981