pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.. | ||
src | 1 year ago | |
.dockerignore | 1 year ago | |
.eslintrc.cjs | 1 year ago | |
.gitignore | 1 year ago | |
Dockerfile | 1 year ago | |
README.md | 1 year ago | |
index.html | 1 year ago | |
modify-openapi-operationids.js | 1 year ago | |
nginx-backend-not-found.conf | 1 year ago | |
nginx.conf | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
tsconfig.json | 1 year ago | |
tsconfig.node.json | 1 year ago | |
vite.config.ts | 1 year ago |
README.md
Full Stack FastAPI and PostgreSQL - Frontend
Generate Client
- Start the Docker Compose stack.
- Download the OpenAPI JSON file from
http://localhost/api/v1/openapi.json
and copy it to a new fileopenapi.json
next to thepackage.json
file. - To simplify the names in the generated frontend client code, modifying the
openapi.json
file, run:
node modify-openapi-operationids.js
- To generate or update the frontend client, run:
npm run generate-client