A few opinionated web based tools built with Django, HTMX and DaisyUI.
Most of development setup is handled by just, and you will need uv to setup Python. For code formatting, prettier is used, so you will need the bun JavaScript runtime.
Before any of these steps, make sure you are in the src/django_project directory.
cd src/django_projectRun this command to do both:
just depsAfter this, you don't need internet connection for other actions.
Copy the sample dot env file and modify it to your liking:
cp .env.sample .env
$EDITOR .envUse this command to run a dev server in the port specified in the previous step:
just devYou will want to run tailwind from another terminal, so your style changes in HTML will reflect in the compiled CSS:
just tailwindTo format all the codebase, run this command:
just formatThis will run ruff to format and sort imports for python code, and run prettier for everything else.
Copy .env.sample file into .env and edit it to your liking. Remember to generate a secure secret key.
cp .env.sample .env
$EDITOR .envRun this command to download everything you need:
just depsConfigure a reverse proxy like nginx or caddy for webtoolkit, according to the settings in .env.
Start a tmux session and run this command to start a production server:
just prodDetach from the tmux session, and you are all set.
Make a systemd service for the production server and enable it, so the server is more robust.