Skip to content

Commit 462731c

Browse files
samratjha96Samrat Jha
authored andcommitted
Add make setup target
Simplify getting started. It does enforce utilization of `uv` but it is better than assuming the right pip/python installation. Makes it way harder to get started
1 parent fddf107 commit 462731c

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
.PHONY: help dev-frontend dev-backend dev
1+
.PHONY: help setup dev-frontend dev-backend dev
2+
3+
setup:
4+
@echo "Installing frontend dependencies..."
5+
@cd frontend && npm install
6+
@echo "Installing backend dependencies..."
7+
@cd backend && uv sync
28

39
help:
410
@echo "Available commands:"
@@ -12,9 +18,9 @@ dev-frontend:
1218

1319
dev-backend:
1420
@echo "Starting backend development server..."
15-
@cd backend && langgraph dev
21+
@cd backend && uv run langgraph dev
1622

1723
# Run frontend and backend concurrently
1824
dev:
1925
@echo "Starting both frontend and backend development servers..."
20-
@make dev-frontend & make dev-backend
26+
@make dev-frontend & make dev-backend

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,16 @@ Follow these steps to get the application running locally for development and te
2929

3030
- Node.js and npm (or yarn/pnpm)
3131
- Python 3.8+
32+
- uv (https://docs.astral.sh/uv/)
3233
- **`GEMINI_API_KEY`**: The backend agent requires a Google Gemini API key.
3334
1. Navigate to the `backend/` directory.
3435
2. Create a file named `.env` by copying the `backend/.env.example` file.
3536
3. Open the `.env` file and add your Gemini API key: `GEMINI_API_KEY="YOUR_ACTUAL_API_KEY"`
3637

3738
**2. Install Dependencies:**
3839

39-
**Backend:**
40-
41-
```bash
42-
cd backend
43-
pip install .
44-
```
45-
46-
**Frontend:**
47-
4840
```bash
49-
cd frontend
50-
npm install
41+
make setup
5142
```
5243

5344
**3. Run Development Servers:**
@@ -105,4 +96,4 @@ Open your browser and navigate to `http://localhost:8123/app/` to see the applic
10596

10697
## License
10798

108-
This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
99+
This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)