Django Rest + Vue JS Template
The Django Vue Template is a minimal example for an application using Vue and Django. It separates Vue and Django in the project, with Vue, Yarn, and Webpack handling frontend logic and bundling assessments, while Django and Django REST framework manage Data Models, Web API, and serve static files. The intention is to use Django primarily for the backend, with view rendering and routing handled by Vue and Vue Router as a Single Page Application (SPA).
Before getting started, make sure you have the following installed and running:
To set up the template, follow these steps:
yarn install
pipenv install --dev
pipenv shell
python manage.py migrate
The Django Vue Template provides a minimal example for integrating Vue and Django in an application. It separates the frontend and backend logic, allowing for efficient management of data models, web API, and static files. The template also integrates various tools and frameworks like Vue CLI 3, Vue Router, Vuex, and Gunicorn for enhanced functionality and deployment options. Overall, the Django Vue Template offers a streamlined and flexible solution for building applications using Vue and Django.