Skip to content

Commit

Permalink
docs(readme): add instructions for running from a cloned repo (#3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosalvatore authored Jul 30, 2024
1 parent a861b86 commit 314e787
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -69,18 +70,45 @@ 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:
Then, run Langflow with:

```shell
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 Langflow’s frontend and backend, use the following commands:

```shell
make install_frontend && make build_frontend && make install_backend
```

Then, run Langflow with:
3. **Run Langflow**

Once the installation is complete, you can run Langflow with:

```shell
python -m langflow run
poetry run python -m langflow run
```

# 🎨 Create Flows
Expand Down

0 comments on commit 314e787

Please sign in to comment.