• Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    Python
  • Created almost 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Examples showing how to use vuejs with python web frameworks (rest, websocket, etc)

Vuejs-Python

This project aims to create various examples showing how to work with vuejs and python based technologies. As vuejs may be integrated in different ways, with different advantages for each approach, having these examples are ideal for the brave-of-heart.

flask-vue

## quickstart

docker-compose -f docker-compose.yml -f docker-compose-dev.yml up

flask-vue is the first project made. It shows how to use flask and vuejs to build a non-SPA (single page application). This approach is more appropriate for those with little experience using js/node build tools like webpack and browserify. You'll mostly have to handle python and js code. Another important advantage is that most flask "resources" will still work out-of-the-box, like debug toolbar and csrf protection.

A disvantage for this approach is that it is much less flexible, integrates poorly with other javascript libraries, less performatic, has cache invalidation issues and is not appropriate for larger projects. Depending of how you implement the frontend, you may also see some flickering.

So, how does the flask-vue was built? Basically you have a flask application with support to schemas that loads your vue framework in the index.html page, mounts your Vue element, queries a endpoint and builds your view. Even though this approach produces flickering, it is quite simple to implement. Let's focus on a few highlights:

  • The javascript is generated by webassets, which converts the coffee files on access. Quite convenient.
  • Marshmallow is used for serialization, as it is capable of loading requests into python objects/sqlalchemy objects and serialize them back.
  • Ajax requests are treated by plain views, with exception to the rest api, which is handle by a custom Resource class, which provides a rest api interface.

Be warned that there are a few broken links here and there AND pagination is not implemented visually.

More Repositories

1

flask-empty

An empty project skeleton / boilerplate for flask projects. Powered by CookieCutter.
Python
650
star
2

read-lua-source-code

Articles, links and suggestion on how to read the lua programming language source code.
75
star
3

flask-vue-semantic-docker

Flask+VueJS+SemanticUI+Nginx+Docker boilerplate. Also, see https://pypi.python.org/pypi/fvsd
Python
40
star
4

mdx-video

Video extension for python-markdown
Python
17
star
5

flask-empty-api

AZAP Flask boilerplate for creating API's with flask.
Python
14
star
6

mangarock.py

(deprecated) mangarock script to download comics
Python
13
star
7

lua_table

Set of useful lua functions for manipulating tables.
Lua
11
star
8

django-comics

Django app for webcomics
Python
11
star
9

uri-faker

See how fonts can be used to create fake URIs
HTML
7
star
10

mangafox

Python
5
star
11

to-cbz

Command line tool to create packed comic files
Python
4
star
12

luabatteries

Lua
4
star
13

flask-rev

Allows you to keep an aggressive cache policy with your HTTP server while using flask.
Python
4
star
14

helix-non-modal-config

The helix config I use for my helix editor
Python
4
star
15

pugce

Python Users Group Cearรก
Python
4
star
16

data-factory

Data factory implementation for python.
Python
3
star
17

lua_fun

Functional programming library for lua lang.
Lua
3
star
18

flask-empty-compose

Flask-Empty based boilerplate with docker-compose. Let's make deployment easy ; )
Dockerfile
3
star
19

empty

Sometimes, starting your flask project takes too much work. Well, empty leverages that for you.
Python
2
star
20

fabric-compose

Fabric recipe for running a simple docker-compose project in any language
Dockerfile
2
star
21

gulp-starter-vue

CoffeeScript
2
star
22

podman-axum-example

Example setup with podman+axum
Python
2
star
23

mymaps

MyMap
JavaScript
1
star
24

renamer

Command line pyrenamer-like tool
Python
1
star
25

manga-scrap

Python
1
star
26

blog

JavaScript
1
star
27

gae_installer

This script makes it easy to install app_engine in your linux distro
Python
1
star
28

gae

Layer framework for googleapp engine.
Python
1
star
29

docker-truffle

Docker truffle playground. See also https://github.com/italomaia/docker-truffle-miner
Shell
1
star
30

Touchpad-Script

Script to enable or disable touchpad for linux. Great for netbooks!
Shell
1
star
31

docker-truffle-miner

Create a private ethereum blockchain with docker. For studying.
Shell
1
star
32

fvsd-cli

Flask+VueJS+SemanticUI+Nginx+Docker boilerplate creator. Also, see https://github.com/italomaia/flask-vue-semantic-docker
Python
1
star
33

luajit-almanac

Humble attempt into putting together info about the current state of luajit and a bit of its history
1
star