Simple template for using reactjs and tailwindcss as frontend and django as backend.
prerequisite to follow the instruction below.
- node > 16.x
- python > 3.x
- django > 3.x
npx degit wichit2s/django-react-tailwind mywebsite
cd mywebsite
or
git lcone https://github.com/wichit2s/django-react-tailwind mywebsite
rm -rf mywebsite/.git
cd mywebsite
- setup database - once
python manage.py makemigrations
python manage.py migrate
- run server
python manage.py runserver
cd webapp/frontend
npm install
npm run watch