GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cstrap/python-vuejs: Gluing Python web frameworks and Vue.js with a set of scripts... basically a wrapper :smile:

This repository was archived by the owner on Feb 26, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

258 Commits
258 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
python_vuejs
python_vuejs
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
AUTHORS.rst
AUTHORS.rst
 
 
CONTRIBUTING.rst
CONTRIBUTING.rst
 
 
HISTORY.rst
HISTORY.rst
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
Makefile
Makefile
 
 
README.rst
README.rst
 
 
punch_config.py
punch_config.py
 
 
punch_version.py
punch_version.py
 
 
requirements_dev.txt
requirements_dev.txt
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

Python and Vue.js gule

Updates Python 3 https://travis-ci.org/cstrap/python-vuejs.svg?branch=master https://coveralls.io/repos/github/cstrap/python-vuejs/badge.svg?branch=master Documentation Status

UPDATE

At the moment project is not supported anymore, due to the rapid evolving of the JavaScript ecosystem. It was born like a POF to allow me to study a bit of JavaScript and VueJS and try some hacks with click. Maybe in the future, the project could reborn. Thanks for using it!

The aim

Gluing Python and Vue.js with a set of scripts that automate the dev and build process.

Projects aims to be agnostic, just use it in order to automate the boring stuff to setup a Vue.js project.

The point is: you start with SPA app inside your current project and then extract it without having the dependency with backend framework, simply changing the npm build scripts.

Feel free to contribute with PRs and opening issues.

Thanks! Cheers! 🍻

Requirements

  • Python 2.7+ or 3.4+
  • nodejs > 5 and npm > 3 (could not work with new versions)
  • *nix like SO, Windows not supported

Commands reference

python-vuejs is shipped with a nice cli built on top of click.:

(env) $ pyvue --help
Usage: pyvue [OPTIONS] COMMAND [ARGS]...

Options:
--help  Show this message and exit.

Commands:
djangofy       Convert Vue.js webpack project into a django...
djbuild        Called inside `package.json`
djstartvueapp  Run click commands on bash.
installvuecli  Install vue-cli
startvueapp    Init vue project via vue-cli
vuebuild       Build Vue.js project via npm
vuecheck       Check if node > 5 and npm > 3 are installed
vuedev         Run frontend dev server via npm

Installation

To install python-vuejs, simply::

$ pip install python-vuejs

Vue.js - A quick overview

Wrappers around npm and vue. These commands automate the boring stuff of setup vue via vue-cli::

$ pyvue startvueapp myapp
$ cd myapp
$ pyvue vuedev
...

Before you go on production run::

$ cd myapp
$ pyvue vuebuild
...

Django - A quick overview

Run pyvue djstartvueapp into your django project directory:

(env) $ pyvue djstartvueapp myapp
...
Enjoy!

Command installs all dependencies and make the myapp a django app.

Features

  • Vue.js starter via vue-cli
  • Django integrations with no dependencies
  • Detach backend and frontend with less effort

TODO

  • Supporting Flask, eg https://github.com/taogeT/flask-vue (without js inside package)
  • Supporting other frameworks
  • Supporting windows

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Gluing Python web frameworks and Vue.js with a set of scripts... basically a wrapper 😄

Topics

djangoflaskpythonpython3vuejsvuejs2wrapper

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

39 stars

Watchers

1 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.