Skip to content

Commit

Permalink
Missed a bunch of changes in my previous PR. oopos (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdiddy77 authored Sep 7, 2024
1 parent 7b347f6 commit 0ae382c
Show file tree
Hide file tree
Showing 10 changed files with 420 additions and 12 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,24 @@ A text-adventure RPG using structured outputs from LLMs as the backend to simula
## How to develop website

### install python deps

```
poetry install --with api-server
```

### install next.js deps

```
cd webui
yarn
```

### regenerate typescript DTO types from pydantic DTOs

```
poetry run python tools/pydantic2ts.py --module webui/api-server/dtos.py --output webui/apps/website/lib/dtos.ts --json2ts-cmd ./webui/node_modules/.bin/json2ts
```

### database

```
Expand All @@ -43,4 +57,4 @@ yarn dev

at that point, the DB, api server, and web FE are all running, and you can make code changes and they will hot-reload

Copyright © 2024 James Dominguez
Copyright © 2024 James Dominguez
56 changes: 55 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ python-dotenv = "^1.0.1"
fastapi = "^0.111.0"
motor = "^3.4.0"
pymongo = "^4.7.3"
fastapi-cors = "^0.0.6"

[build-system]
requires = ["poetry-core"]
Expand Down
Loading

0 comments on commit 0ae382c

Please sign in to comment.