Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niraj-khatiwada/openapi-codegen
Using automatically generated API schema and query from OpenAPI json that generates React Query code in Next.js
https://github.com/niraj-khatiwada/openapi-codegen
Last synced: about 1 month ago
JSON representation
Using automatically generated API schema and query from OpenAPI json that generates React Query code in Next.js
- Host: GitHub
- URL: https://github.com/niraj-khatiwada/openapi-codegen
- Owner: niraj-khatiwada
- Created: 2024-10-13T09:27:37.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T15:39:08.000Z (2 months ago)
- Last Synced: 2024-11-06T16:26:58.695Z (2 months ago)
- Language: TypeScript
- Size: 233 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Autogenerated API's from OpenAPI schema
See [this](https://github.com/niraj-khatiwada/nestjs-starter-template) repo for backend setup.
### Steps
1. Point your OpenAPI schema.json file in `.env`
```
NEXT_PUBLIC_API_URL=http://localhost:8000/swagger/json
```2. Generate the queries and schema
```
pnpm codegen
```3. Start your server
```
pnpm dev
```