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

https://github.com/swe-himelrana/django-vite-inertia-react-tailwind-starterkit

This starter kit provides a minimal and simple starting point for building a Django application with Inertia and Vite with minimal or no configuration. Styled with Tailwind CSS.
https://github.com/swe-himelrana/django-vite-inertia-react-tailwind-starterkit

starter-kit

Last synced: 3 months ago
JSON representation

This starter kit provides a minimal and simple starting point for building a Django application with Inertia and Vite with minimal or no configuration. Styled with Tailwind CSS.

Awesome Lists containing this project

README

        

# Starterkit for Django, Vite, InertiaJS, ReactJS, TailwindCSS

# Development

```
Make sure
Debug = True # in django settings.py file
```
```
create virtualenv
install requirements.txt
npm install
```

```bash
# now run
npm run dirt-dev
python manage.py runserver
```

# Production
Note: In this starterkit I have used Whitenoice for staticfile serve

0. Disable Debug in django settings.py file

```
Debug = False

```

1. Build React files
```bash
npm run vite-build
```
2. Run Django collectstatic

```bash
python manage.py collectstatic
```
3. Run Django server (in this case no need to run `npm` command)

```bash

python manage.py runserver

```

Everyting should work like you expect.

Note: Now you can use Nginx, Gunicorn for production or any other technology you like for production.

Thank you
------------------
Himel
[email protected]
https://himelrana.com