Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 859 Bytes

README.md

File metadata and controls

51 lines (38 loc) · 859 Bytes

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

python -m venv .venv

Activate the virtual environment

source .venv/bin/activate

Install required packages

python -m pip install -r requirements.txt

Run Django server

python manage.py runserver

Frontend application

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