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.
- Host: GitHub
- URL: https://github.com/swe-himelrana/django-vite-inertia-react-tailwind-starterkit
- Owner: Swe-HimelRana
- Created: 2023-06-16T19:23:18.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-17T11:58:42.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T12:19:52.019Z (about 1 year ago)
- Topics: starter-kit
- Language: Python
- Homepage: https://himelrana.com
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 serve0. 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