A very basic Cookiecutter template to start off a Django projects with MithrilJS for the front-end.
Start the scaffholding.
cookiecutter https://github.com/poudel/cookiecutter-drf-mithril
Change to the newly created directory when done and run the following command to install python dependencies.
pipenv install
Now install the front-end stuff. I recommend NVM for extra protection.
yarn install
Done! Now run ./manage.py runserver
and yarn start
.
- No hot reloading or anything much fancy for the front-end.
- Comes with
axios
(to make API requests) as a dependency. - Babel for ES6,
node-sass
powered loader for SASS, basic webpack config for development. - A base
UI
component, powered byludbek/mithril-componentx
andludbek/validatex
. - Uses the newly recommended
Pipfile
for python dependencies.