gregsadetsky / minimalish-django-starter

Django + Vite starter kit & easy deployment using disco
0 stars 1 forks source link

Minimalish Django Starter Kit

intro

Minimalish is a Django Project Template. It's an opiniated, deployment-ready, "good enough" starting point that includes most of everything you'd want to have in a Django project:

how to do it

copy & paste the code below to start a new Django project based on this template:

echo -n "what's your project name (short, lowercase-only, no spaces or hyphens, etc.)? "
read PROJECTNAME
mkdir $PROJECTNAME
cd $PROJECTNAME
python3 -m venv venv
source venv/bin/activate
pip install Django==5.1
django-admin startproject --template=https://github.com/gregsadetsky/minimalish-django-starter/archive/main.zip -n .env.example -n README.starter.md -n serve.sh $PROJECTNAME .
pip install -r requirements.txt
git init
mv starter $PROJECTNAME
mv README.starter.md README.md
cp .env.example .env
mkdir core/frontend/static
python manage.py migrate
(cd core/frontend && npm install)

then:

cd core/frontend
npm run dev

to deploy using disco:

more technical info

Minimalish uses:

more extra bonus things

other resources

credit

this project was initially created during my time at the Recurse Center. thanks to Rob Simmons for the contributions!

[^1]: because you only get one chance