-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (30 loc) · 1.22 KB
/
Makefile
File metadata and controls
45 lines (30 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: install install-front dev-front build run-fastapi fixture-fastapi run-litestar fixture-litestar run-sanic fixture-sanic run-quart fixture-quart run-falcon fixture-falcon
VENV = .venv/bin
install:
$(VENV)/pip install -e ".[dev]"
install-front:
cd frontend && npm install
dev-front:
cd frontend && npm run dev
build:
cd frontend && npm run build
run-fastapi:
cd examples/fastapi_example && ../../$(VENV)/uvicorn app:app --reload --port 8000
fixture-fastapi:
cd examples/fastapi_example && ../../$(VENV)/python fixture.py
run-litestar:
cd examples/litestar_example && ../../$(VENV)/uvicorn app:app --reload --port 8000
fixture-litestar:
cd examples/litestar_example && ../../$(VENV)/python fixture.py
run-sanic:
cd examples/sanic_example && ../../$(VENV)/sanic app:app --dev --port 8000
fixture-sanic:
cd examples/sanic_example && ../../$(VENV)/python fixture.py
run-quart:
cd examples/quart_example && ../../$(VENV)/hypercorn app:app --reload --bind 0.0.0.0:8000
fixture-quart:
cd examples/quart_example && ../../$(VENV)/python fixture.py
run-falcon:
cd examples/falcon_example && ../../$(VENV)/uvicorn app:app --reload --port 8000
fixture-falcon:
cd examples/falcon_example && ../../$(VENV)/python fixture.py