Coder Social home page Coder Social logo

leveapi / hello-vue-django Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zaxlct/hello-vue-django

0.0 0.0 0.0 18 KB

Django + Vue 单页面应用的开发环境

License: Other

JavaScript 36.24% Makefile 7.59% Python 43.60% HTML 1.63% Vue 10.94%

hello-vue-django's Introduction

hello-vue + Django

This is a boilerplate project for using vuejs with Django.

中文详细教程

Django + Vue 单页面应用的开发环境搭建步骤

Features

  • Django backend in ./backend
  • vuejs (v2) frontend in ./frontend
  • Hot-reload with vue-loader
  • eslint linter integration
  • Makefile to make your life easy

Development environment setup

These steps will install all required dependencies including development ones, run migrations and start dev server.

make dev
make migrate
make run

Deployment

These steps will install productio dependencies and build vuejs application to static/dist folder.

make prod
make build

Be aware

For the sake of simplicity Django config is contained within it's own backend app. In real world setting you would probably want to remove backend from INSTALLED_APPS, create a new app and move backend.views to it.

You probably want to create python virtual environment as well. Default python instance available will be used.

hello-vue-django's People

Contributors

bradshjg avatar rokups avatar zaxlct avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.