Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django + Inertia + React

Create environment

Set up Django

poetry init
poetry add Django@4
django-admin startproject backend .
poetry run python manage.py runserver 8080

Set up React + Vite

npm create vite@latest frontend

✔ Select a framework: › React
✔ Select a variant: › TypeScript + SWC

Scaffolding project in /Users/yuta.okada/local/django-inertia-react-example/frontend...

Done. Now run:

  cd frontend
  npm install
  npm run dev

Install adapter for Django

poetry add inertia-django django-vite

Install libs for React

npm install -D @types/node
npm install -D @inertiajs/react

Run App

Run the following command in the root dir.

poetry run python manage.py runserver 8080

Run the following command in the frontend dir.

cd frontend
npm run dev

Then, access to http://localhost:8080

References

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages