Socket
Socket
Sign inDemoInstall

flask-mvc

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flask-mvc

Flask automated MVC experiment


Maintainers
1

Flask MVC Experiment (Django alternative)

Idea: Django alternative (powered by Flask + SQL-Alchemy)

Run project

Install requirements

pip install -r requirements.txt

Apply changes to database (from database migration files)

flask db upgrade

Start Webserver

set FLASK_APP=flask_mvc_app
flask run
# optional
flask run --port 80 --host 0.0.0.0

Development

Enable debug mode for development:

set FLASK_DEBUG=1

Use Flask Shell:

flask shell
>>> from flask_mvc_app.models import *
>>> TestModel.all()

Create migration-file after model changes

flask db migrate -m "user model added"

Initialize DB Structures

Normally not needed again... (for information only)

flask db init

Create Release-Build for PIP

python setup.py bdist_wheel

Inspired (or powered) by:

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc