docs(readme): add instructions for running from a cloned repo (#3072)

This commit is contained in:
Paulo Salvatore 2024-07-30 16:37:29 -03:00 committed by GitHub
commit 314e787459
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,7 @@
- [📝 Content](#-content)
- [📦 Get Started](#-get-started)
- [Running Langflow from a Cloned Repository](#-running-langflow-from-a-cloned-repository)
- [🎨 Create Flows](#-create-flows)
- [Deploy](#deploy)
- [DataStax Langflow](#datastax-langflow)
@ -69,13 +70,6 @@ You can install Langflow with pip:
# Make sure you have >=Python 3.10 installed on your system.
python -m pip install langflow -U
```
Or
If you would like to install from your cloned repo, you can build and install Langflow's frontend and backend with:
```shell
make install_frontend && make build_frontend && make install_backend
```
Then, run Langflow with:
@ -83,6 +77,40 @@ Then, run Langflow with:
python -m langflow run
```
# Running Langflow from a Cloned Repository
If you prefer to run Langflow from a cloned repository rather than installing it via pip, follow these steps:
1. **Clone the Repository**
First, clone the Langflow repository from GitHub:
```shell
git clone https://github.com/langflow-ai/langflow.git
```
Navigate into the cloned directory:
```shell
cd langflow
```
2. **Build and Install Dependencies**
To build and install Langflows frontend and backend, use the following commands:
```shell
make install_frontend && make build_frontend && make install_backend
```
3. **Run Langflow**
Once the installation is complete, you can run Langflow with:
```shell
poetry run python -m langflow run
```
# 🎨 Create Flows
Creating flows with Langflow is easy. Simply drag components from the sidebar onto the workspace and connect them to start building your application.