Skip to content

Commit 45cfc18

Browse files
authored
Merge pull request #21 from JayanGupta/chore/add-makefile
chore: add Makefile
2 parents 741c7e9 + d6bdb6b commit 45cfc18

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎Makefile‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.PHONY: setup dev test clean
2+
3+
setup:
4+
@echo "Setting up backend..."
5+
cd backend && python -m venv .venv
6+
cd backend && .venv/bin/pip install -r requirements.txt
7+
@echo "Setting up frontend..."
8+
cd frontend && npm install
9+
10+
dev-backend:
11+
cd backend && .venv/bin/uvicorn app.main:app --reload
12+
13+
dev-frontend:
14+
cd frontend && npm run dev
15+
16+
dev:
17+
@echo "Run 'make dev-backend' and 'make dev-frontend' in separate terminals, or use docker-compose."
18+
19+
test:
20+
cd backend && .venv/bin/pytest tests/
21+
22+
clean:
23+
find . -type d -name "__pycache__" -exec rm -rf {} +
24+
find . -type f -name "*.pyc" -delete
25+
rm -rf backend/.venv
26+
rm -rf frontend/node_modules
27+
rm -rf frontend/.next

0 commit comments

Comments
 (0)