This is a sample project with Django REST framework schema generation and React API client generated from the schema.
API
- Python 3
- Django 5
- Django REST Framework
- drf-spectacular
Frontend
- React
- orval
- yarn
- Typescript
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
- Make sure you have Node installed
- Install modules
yarn install
- Run
yarn dev