Coder Social home page Coder Social logo

chrmorais / flask-skeleton-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from depado/flask-skeleton

0.0 1.0 0.0 17 KB

A simple script to create a flask application using command line.

License: Do What The F*ck You Want To Public License

Python 100.00%

flask-skeleton-1's Introduction

Flask-Skeleton


Main Goal of the Project

The main goal of this project is to generate easily a skeleton for a simple or more complex Flask application.

Arguments and Usage

asciicast

The simpler way for now to use this script is to add the path as an alias in your .bashrc / fish.config. Exemple :

alias flaskeleton="python /full/path/to/script/flask_project.py"

And then use it by just calling flaskeleton

Arguments

  • --virtualenv or -v : Generate a virtual environment to isolate your libs from the system libs. It also permits to install dependencies as non-root user. The dependencies for the project will be installed with the virtualenv so it can work out of the box.
  • --bower [args] or -b [args] : Will install static dependencies in the flask static directory of the generated project using bower. Note that you need to have it installed on your system for this option to work. Otherwise the generation won't even begin. (If you don't have bower, ignore this option).
  • --database or -d : Will generate a project with a database using the plugin Flask-SQLAlchemy. This generated project comes with a predefined User model so you can see how a model is declared. The database will be an sqlite one and you have to create the database once your models are defined. This option also installs the Flask-Migrate plugin so you can run your own migrations.
  • --no-debug or -n : Disables the DEBUG mode. Note that in production it may be a good thing to keep this option to true as Green Unicorn or UWSGI uses the errors generated by the debug mode to create the log files.
  • --git or -g : Initialise an empty git repository in the folder and copy a sample gitignore file so you don't add some things like all your .pyc to your project by mistake.

flask-skeleton-1's People

Contributors

depado avatar ku1ik avatar xoxowinniexoxo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.