Skip to content

Stuart-Yee/FlaskConstructicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlaskConstructicon

image

Flask Project Builder

Constructs a file tree for a Flask app using MVC design pattern (Models, Controllers and Templates as Views):

image

Installation:

  1. pip install flaskconstructicon

Simple Usage:

  1. Navigate to your new directory's project
  2. Run FlaskConstructicon >> python -m flaskconstructicon [system arguments]
  3. FlaskConstructicon takes several arguments
Argument Options Description Examples
-md test, help Run mode, test or help python FlaskConstructicon.py -md test
-a Any Specifies app name python FlaskConstructicon.py -a my_app
-db mysql Add file for database API python FlaskConstructicon.py -db mysql
test N/A Same as -md test (first argument only) python FlaskConstructicon.py test
help N/A Same as -md help (first argument only) python FlaskConstructicon.py help

Test output with app name 'simflario'

image

Output creating new project:

image

Test output with existing project

image

Use an alias

Example alias using git bash: alias constructicon='winpty python C:/Path/To/FlaskConstructicon/FlaskConstructicon.py'

Next steps:

-Add source files for other db connections and/or APIs

-create models files and models option

-create "Django Style" option

-create option dbua for user model and authentication based on db config

About

Flask Project Builder

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages