Git Product home page Git Product logo

flask-bootstrap's Introduction

Build Status Coverage Status

flask-bootstrap

A cli tool to bootstrap your flask draft project in a few seconds.

Install

You can install this tool by pip:

$ pip3 install git+https://github.com/kevinxuv/flask-bootstrap

Usage

After install, run flask-boot in your terminal or console:

$ cd /tmp  # cd to your project's workspace
$ flask-boot # run this cmd
$ -> Give your flask project a name [unknown]: test
$ -> Give a description for your flask project [none]: test
$ -> Init git or not? [False]: yes
$ Start to bootstrap project...
$ Finish bootstrap project test at /private/tmp/test

Then you will see your created flask draft project in your folder:

test
├── README.md
└── test
    ├── __init__.py
    ├── settings.py
    └── wsgi.py

1 directory, 4 files

And you can run this flask project by flask cli:

$ cd /tmp/test # cd to your project dir
$ export FLASK_APP=test.wsgi:app && flask run
$ * Serving Flask app "test.wsgi:app"
$ * Environment: production
$   WARNING: This is a development server. Do not use it in a production deployment.
$   Use a production WSGI server instead.
$ * Debug mode: off
$ * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Now, get ready to add more features to it, have fun.

flask-bootstrap's People

Contributors

kevinxuv avatar

Watchers

 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.