This repo is scaffolding for your django project with InertiaJs as frontend.
- Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
git clone https://github.com/vendor/projectStart Docker
docker compose up -d- Generate
SECRET_KEY
python manage.py shell -c 'from django.core.management import utils; print(utils.get_random_secret_key())'-
Replace
SECRET_KEYinsettings.pyfromcoredirectory -
Build Assets
npm install && npm run dev- Create app
django-admin startapp <appname> apps/<appname>- for production make sure
DEV_MODEandDEBUGis disabled insettings.py
use $route to access your route
add app name to JS_ROUTES_INCLUSION_LIST in settings.py
add app_name = '<replace-with-app-name>' in <app>\urls.py
path for InertiaJs resources\js\utils\route.js
The Scaffolding is open-sourced software licensed under the BSD license.