django-admin startapp frontend
- src/components
- static/css/
- static/frontend/ (webpack will build main.js here)
- static/images/
- template/frontend/index.html
npm init -y
Insert/Replace dependenciens and devDependencies in file "package.json"
Now, run npm install
Set node "script" according in package.json file.
Create index.html according file in this repository.
Create following javascript files.
- src/components/App.js (file App.js in this repository)
- src/index.js (file index.js in this repository)
To build file just run npm run dev
or npm run build
.
Now you need create in views.py the view and add to urls in app and in main app of your project.