Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mich0232/drf-api-schema-tutorial

Django REST framework OpenAPI schema generation
https://github.com/mich0232/drf-api-schema-tutorial

django django-rest-framework openapi orval react

Last synced: about 2 months ago
JSON representation

Django REST framework OpenAPI schema generation

Awesome Lists containing this project

README

        


OpenAPI logo

# Django REST framework OpenAPI Schema generation

This is a sample project with Django REST framework schema generation and React API client generated from the schema.

## Technologies

**API**
- Python 3
- Django 5
- Django REST Framework
- drf-spectacular

Frontend
- React
- orval
- yarn
- Typescript

## Getting started

**Django API**

Create a new Python virtual environment
```shell
python -m venv .venv
```

Activate the virtual environment
```shell
source .venv/bin/activate
```

Install required packages
```shell
python -m pip install -r requirements.txt
```

Run Django server
```shell
python manage.py runserver
```

Frontend application

1. Make sure you have Node installed
2. Install modules `yarn install`
4. Run `yarn dev`