Skip to content

Commit 80dda8d

Browse files
committed
🔧 chore(geti-inspect): Update Geti Inspect to react 19 (open-edge-platform#2948)
* Use src folder inside run.sh * Set openapi_url path * Update to react 19 * Specify bash language in readme
1 parent a8c8a64 commit 80dda8d

File tree

5 files changed

+1805
-1666
lines changed

5 files changed

+1805
-1666
lines changed

app/backend/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ set -euo pipefail
2323
# -----------------------------------------------------------------------------
2424

2525
SEED_DB=${SEED_DB:-false}
26-
APP_MODULE=${APP_MODULE:-app/main.py}
26+
APP_MODULE=${APP_MODULE:-src/main.py}
2727
UV_CMD=${UV_CMD:-uv run}
2828

2929
export PYTHONUNBUFFERED=1
3030
export PYTHONPATH=.
3131

3232
if [[ "$SEED_DB" == "true" ]]; then
3333
echo "Seeding the database..."
34-
$UV_CMD app/cli.py init-db
35-
$UV_CMD app/cli.py seed --with-model=True
34+
$UV_CMD src/cli.py init-db
35+
$UV_CMD src/cli.py seed --with-model=True
3636
fi
3737

3838
echo "Starting FastAPI server..."

app/backend/src/main.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ async def lifespan(_: FastAPI): # type: ignore # noqa: ANN201
3434
yield
3535

3636

37-
app = FastAPI(lifespan=lifespan)
37+
app = FastAPI(
38+
lifespan=lifespan,
39+
openapi_url="/api/openapi.json",
40+
redoc_url=None,
41+
docs_url=None,
42+
)
3843
app.include_router(project_router)
3944
app.include_router(job_router)
4045
app.include_router(media_router)
@@ -154,5 +159,5 @@ def format_location(loc: Sequence[str | int]) -> str:
154159

155160

156161
if __name__ == "__main__":
157-
uvicorn_port = int(os.environ.get("HTTP_SERVER_PORT", "4999"))
162+
uvicorn_port = int(os.environ.get("HTTP_SERVER_PORT", "7860"))
158163
uvicorn.run("main:app", host="0.0.0.0", port=uvicorn_port) # noqa: S104

app/ui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npm run preview
3232

3333
Use the following commands to test your changes.
3434

35-
```
35+
```bash
3636
npm run format
3737
npm run lint
3838
npm run type-check

0 commit comments

Comments
 (0)