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

https://github.com/sarthakjariwala/django-vite-inertia

Template for Django + Vite + Inertia. Frontend options: Vue, React, Svelte
https://github.com/sarthakjariwala/django-vite-inertia

copier-template django django-template inertiajs react svelte vitejs vue3

Last synced: 6 months ago
JSON representation

Template for Django + Vite + Inertia. Frontend options: Vue, React, Svelte

Awesome Lists containing this project

README

          

# Django with Vite and Inertia

[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-orange.json)](https://github.com/copier-org/copier)

Set up your Django project with [Vite](https://vite.dev/) and [Inertia](https://inertiajs.com/).

Other configurations:

- Database (PostgreSQL, SQLite)
- Frontend:
- Vue
- React
- Svelte
- Tailwind CSS (optional)
- Docker (optional)
- Development
- Production

![Demo](./demo.gif)

> [!NOTE]
> SQLite is configured for production use if you choose to use it.

## Getting started

- (Recommended) Using [uv](https://docs.astral.sh/uv/) or [pipx](https://pipx.pypa.io/stable/)

```bash
mkdir myproject
uvx copier copy gh:sarthakjariwala/django-vite-inertia myproject
```

OR

```bash
mkdir myproject
pipx run copier copy gh:sarthakjariwala/django-vite-inertia myproject
```

- Alternatively, you may have installed [copier](https://copier.readthedocs.io/en/stable/) through other means.

```bash
mkdir awesome-project
copier copy gh:sarthakjariwala/django-vite-inertia awesome-project
```

## Update project template

You can also get the latest changes in your project as this template evolves in the future.

```bash
cd awesome-project
uvx copier update
```

Or

```bash
cd awesome-project
copier update
```

## License

MIT License

## Acknowledgements

Standing on the shoulders of giants:

- [Django](https://www.djangoproject.com/)
- [Vite](https://vitejs.dev/)
- [Inertia](https://inertiajs.com/)
- [Django Vite](https://github.com/MrBin99/django-vite)
- [Django Inertia](https://github.com/inertiajs/inertia-django)