Coder Social home page Coder Social logo

djangovue's Introduction

djangovue

Vue.js Logo

This is a starter project for Django with Vue.js. I fell in love with the readability you get in Vue.js and decided to create a project where all components are laid out in the most readable way.

Note that this doesn't have features like hot reloading for webpack, but it's a good webpack starting point to build on.

How to get started?

  1. Get a copy of the repo on your machine
git clone https://github.com/mikebz/djangovue.git
cd djangovue
  1. Set up virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install the necessary libraries.
pip install -r requirements.txt
npm install
  1. Build the Vue.js front end.
npm run build
  1. Run the Django project
python3 manage.py runserver

At this point in time you should be able to navigate to your localhost:8000 and see a template rendered. You can also run the npm run watch in a separate window if you want to rebuild your frontend. Note that for simplicity there is no hot reloading so you would need to refresh the page when you save your front end files.

Sources

This only worked because people before me created some wonderful examples.

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.