https://github.com/fbjorn/openapi-to-typescript-example
Example project to show TS code generation from an OpenAPI spec
https://github.com/fbjorn/openapi-to-typescript-example
Last synced: 3 months ago
JSON representation
Example project to show TS code generation from an OpenAPI spec
- Host: GitHub
- URL: https://github.com/fbjorn/openapi-to-typescript-example
- Owner: fbjorn
- License: mit
- Created: 2022-06-22T09:28:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-19T15:40:43.000Z (about 3 years ago)
- Last Synced: 2024-12-28T11:14:24.367Z (9 months ago)
- Language: CSS
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openapi-to-typescript-example
Example project to show TS code generation from an OpenAPI spec
## Installation and usage
### Backend
```shell
cd backend
python -m virtualenv .venv && source .venv/bin/activate # recommended
pip installuvicorn backend:app --reload
```### Frontend
```shell
cd frontend
yarn install
yarn dev
```#### Generate Typescript Client
```shell
# 1. Run backend# 2. Execute:
yarn make-api
```