Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 26, 2021. It is now read-only.
/python-vuejsPublic archive

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

License

NotificationsYou must be signed in to change notification settings

cstrap/python-vuejs

Repository files navigation

UpdatesPython 3https://travis-ci.org/cstrap/python-vuejs.svg?branch=masterhttps://coveralls.io/repos/github/cstrap/python-vuejs/badge.svg?branch=masterDocumentation 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 andVue.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 dependencywith backend framework, simply changing thenpm 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 --helpUsage: 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-clistartvueapp    Init vue project via vue-clivuebuild       Build Vue.js project via npmvuecheck       Check if node > 5 and npm > 3 are installedvuedev         Run frontend dev server via npm

Installation

To install python-vuejs, simply::

$ pip install python-vuejs

Vue.js - A quick overview

Wrappers aroundnpm andvue.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

Runpyvue djstartvueappinto your django project directory:

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

Command installs all dependencies and make themyapp a django app.

Features

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

TODO

Credits

This package was created withCookiecutter and theaudreyr/cookiecutter-pypackage project template.

About

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

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp