I am a front-end developer and I just want to pull the web directory. Is it possible to run it?
I am a front-end developer and I just want to pull the web directory. Is it possible to run it?
Hello,
Thank you for contacting Label Studio,
Do you mean you'd like to pull only the front-end part of the codebase?
Thank you!
Comment by Oussama Assili Workflow Run
Yes
Hello,
Please be informed If you want to run the open-source version of Label Studio, we recommend cloning the full GitHub repository and building from source. That repo includes the label-studio CLI, Dockerfile, build scripts, frontend and backend code in one place:
git clone https://github.com/HumanSignal/label-studio.gitcd label-studiodocker build -t label-studio:latest .
This ensures you have the correct label-studio entrypoint and a compatible environment for OS.
Best Regards!
Comment by Oussama Assili Workflow Run
Hello, may I ask if your issue has been resolved, i also want to use the latest version in my project
Hello,
Please note that we recommend using the full Github Repository. We no longer support dedicated Front end repo.
Please let me know if you have additional questions!
Comment by Oussama Assili Workflow Run
You can run the code locally (for dev) as follows, download the repo
For FE
cd web
yarn install
make frontend-dev
For BE:
poetry install
poetry shell
FRONTEND_HOSTNAME=http://localhost:8010 FRONTEND_HMR=true LOG_LEVEL=DEBUG DEBUG=true label-studio -b
you can also enable/disable feature flags by passing them in the BE command. E.g. let's say I want to enable the following
FF_TIMESERIES_SYNC=true
fflag_feat_optic_2123_audio_spectrograms=1
fflag_feat_front_bros58_timeseries_multichannel_short=1
use this
poetry shell
FRONTEND_HOSTNAME=http://localhost:8010 FRONTEND_HMR=true LOG_LEVEL=DEBUG DEBUG=true FF_TIMESERIES_SYNC=true fflag_feat_optic_2123_audio_spectrograms=1 fflag_feat_front_bros58_timeseries_multichannel_short=1 label-studio -b
Hello,
Running only the front-end is not feasible as it relies on the back-end server.
You can refer to my approach:
- Run back-end server. Refer to https://labelstud.io/guide/install#Install-from-source.
- And then run front-end part:
cd web yarn install yarn watch - Accessing http://localhost:8080, so you can create an account and login to pages of front-end part.
Best Regards!