Skip to main content

"Generic Django Apps Plugin System - Vue.js frontend plugin"

Project description

Gdaps-Frontend-Vue Plugin

When the gdaps.frontend app is activated in INSTALLED_APPS, the startplugin management command must be extended by a frontend part like gdaps-frontend-vue: When a new plugin is created, it creates a frontend/myproject-plugin-fooplugin directory wth some boilerplate files in that plugin.

Install

As prerequisite, it is recommended to install vue globally, you can do that with yarn global add @vue/cli @vue/cli-service-global (GDAPS tries to do that during the initfrontend call).

Now execute

./manage.py initfrontend

This will install a full Vue.js frontend (using Vue CLI). You can start yarn serve (or npm run serve, depending on your choice) in the frontend directory afterwords. You then need to start Django using ./manage.py runserver as usual to enable the Django backend. GDAPS manages all the needed background tasks to transparently enable hot-reloading when you change anything in the frontend source code now.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdaps_frontend_vue-0.0.5.tar.gz (23.3 kB view hashes)

Uploaded Source

Built Distribution

gdaps_frontend_vue-0.0.5-py3-none-any.whl (43.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page