Skip to main content

An unladen web framework for building APIs and app backends.

Project description

Falcon Vue

Falcon Vue is a plugin for the Falcon Web Framework.

falcon-vue is a plug-in for distributing static files built by vue.js (vue-cli) on falcon.

Description

falcon-vue is a plug-in for distributing static files built by vue.js (vue-cli) on falcon. To use this plugin, you need to install vue-cli and build it to generate a static file.

Install

pip3 install falcon-vue

Usage

import os
import sys
import falcon
from wsgiref import simple_server
from falcon_vue import register_vue_app

app = falcon.API()

app = register_vue_app(
    app,
    api_url="/dist",
    src_path="./test_project/dist"
)

if __name__ == '__main__':
    httpd = simple_server.make_server('127.0.0.1', 8000, app)
    httpd.serve_forever()

Licence

MIT

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
falcon_vue-0.1.4-py3-none-any.whl (5.2 kB) Copy SHA256 hash SHA256 Wheel py3
falcon_vue-0.1.4.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page