django-vuejs-tutorial:将Vue.js与django集成的教程

  • y5_415338
    了解作者
  • 276.5KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-01 04:22
    上传日期
django-vuejs教程 本教程将Vue.js和django集成到一个应用程序中,其中Vue.js处理前端逻辑,而django管理后端响应。 安装 克隆仓库 运行pip install -r requirements.txt 运行npm install 运行./node_modules/.bin/webpack 运行python manage.py runserver 有关详细的教程,请查看此 。 没有Webpack设置 有时您可能不需要整个前端应用程序。 也许您只是Vue.js来改善现有应用程序的功能要查看no webpack示例 脚步: 使用git clone --singl
django-vuejs-tutorial-master.zip
内容介绍
[![Build Status](https://travis-ci.com/michaelbukachi/django-vuejs-tutorial.svg?branch=master)](https://travis-ci.com/michaelbukachi/django-vuejs-tutorial) # django-vuejs-tutorial This tutorial integrates Vue.js and django into one application, with Vue.js handling frontend logic and django managing backend reponses. ## Installation 1. Clone the repo 2. Run `pip install -r requirements.txt` 3. Run `npm install` 4. Run `./node_modules/.bin/webpack` 3. Run `python manage.py runserver` For a detailed tutorial, checkout this [wiki](https://github.com/michaelbukachi/django-vuejs-tutorial/wiki/Django-Vue.js-Integration-Tutorial). ## No Webpack setup Sometimes you might not need a whole frontend application. Maybe you just Vue.js to improve functionality on your existing app To checkout the no webpack example ### Steps: 1. Clone the repo with `git clone --single-branch --branch no_webpack https://github.com/michaelbukachi/django-vuejs-tutorial.git` (You can also clone the repo normal way and checkout the **no_webpack** branch) 2. Run `pip install -r requirements.txt` 3. Run `python manage.py runserver` If you are done with the tutorial and you feel like you need to know more about Django and VueJs, then check out [this](https://courses.djangowaves.com/?wpam_id=4) comprehensive course. It includes web sockets, celery, authentication and a lot more!
评论
    相关推荐