All Projects → isakal → create-flask-app

isakal / create-flask-app

Licence: MIT License
Package for Initializing a Flask Project Structure

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to create-flask-app

crawler click tutorial
click tutorial ( crawler ) use python
Stars: ✭ 15 (-6.25%)
Mutual labels:  click
clickos
The Click modular router: fast modular packet processing and analysis
Stars: ✭ 127 (+693.75%)
Mutual labels:  click
react-native-double-click
A Component Wrapper for Double Click/Tap
Stars: ✭ 42 (+162.5%)
Mutual labels:  click
website
Website for the Pallets projects
Stars: ✭ 126 (+687.5%)
Mutual labels:  click
cloup
Library to build command line interfaces (CLIs) based on Click. Cloup = Click + option groups, constraints, command aliases, command sections, help themes, "did you mean ...?" suggestions ...
Stars: ✭ 44 (+175%)
Mutual labels:  click
exch
a command-line tool to see currency exchange rates
Stars: ✭ 20 (+25%)
Mutual labels:  click
ansible-taskrunner
Ansible Taskrunner - ansible-playbook wrapper with YAML-abstracted python click cli options!
Stars: ✭ 14 (-12.5%)
Mutual labels:  click
vue-simple-context-menu
📌 Simple context-menu component built for Vue. Works well with both left and right clicks. Nothing too fancy, just works and is simple to use.
Stars: ✭ 162 (+912.5%)
Mutual labels:  click
configmanager
Forget about configparser, YAML, or JSON parsers. Focus on configuration. NOT RECOMMENDED FOR USE (2019-01-26)
Stars: ✭ 15 (-6.25%)
Mutual labels:  click
focus-outside
📦 一个很棒的 clickOutside 库,它解决了 iframe 无法触发 clickOutside 的问题,并且它支持分组绑定处理。A good clickOutside library, which solves the problem that iframe cannot trigger clickOutside, and it supports grouping binding processing.
Stars: ✭ 74 (+362.5%)
Mutual labels:  click
metronome
An elementary OS app
Stars: ✭ 16 (+0%)
Mutual labels:  click
GAlogger
Log R Events and R Usage to Google Analytics
Stars: ✭ 23 (+43.75%)
Mutual labels:  click
cliar
Create modular Python CLIs with type annotations and inheritance
Stars: ✭ 47 (+193.75%)
Mutual labels:  click
export-dynamodb
Export Amazon DynamoDb to CSV or JSON
Stars: ✭ 52 (+225%)
Mutual labels:  click
Utlyz-CLI
Let's you to access your FB account from the command line and returns various things number of unread notifications, messages or friend requests you have.
Stars: ✭ 30 (+87.5%)
Mutual labels:  click
wc18-cli
An easy command line interface for the 2018 World Cup
Stars: ✭ 15 (-6.25%)
Mutual labels:  click
Click-Counter-Bot
A telegram bot module for how to count total clicks on button.
Stars: ✭ 23 (+43.75%)
Mutual labels:  click
MeeInk
Material Design click effect
Stars: ✭ 33 (+106.25%)
Mutual labels:  click
click-help-colors
Colorization of help messages in Click 🎨
Stars: ✭ 67 (+318.75%)
Mutual labels:  click
JHTapTextView
Tap TextView,Text Tap,文本点击
Stars: ✭ 23 (+43.75%)
Mutual labels:  click

Create-Flask-App PRs Welcome

Flask port of create-react-app that is used for initializing project structure of your next application.

Create Flask app works on macOS, Windows and Linux. If something doesn't work, please file an issue. If you have questions, suggestions or need help, feel free to open an issue.

Quick overview

pip install createflaskapp
create-flask-app my-app
cd my-app
# activate venv
python run.py

(use correct version of pip and python according to your OS and python install) Then open http://localhost:5000 to see your app. When you are ready to deploy to production, set environment variable PRODUCTION to True on your server of choice, clone the project onto your server and spin it up.

Creating an app

You'll need to have Python 3.6 or higher on your local development machine (but it's not required on the server). To create a new app, you can run :

bash

create-flask-app my-app 

python

python -m create-flask-app my-app

It will create a directory called my-app inside the current folder. Inside that directory, it will generate the initial project structure :

my-app/
├──venv
├── app
│   ├── __init__.py     
│   ├── config.py       
│   ├── errors
│   │   ├── __init__.py 
│   │   └── handlers.py 
│   ├── home
│   │   ├── __init__.py 
│   │   └── routes.py   
│   ├── static
│   │   └── css
│   │       └── main.css
│   └── templates     
│       ├── about.html
│       ├── base.html 
│       ├── error.html
│       └── home.html 
├── requirements.txt  
└── run.py

No complicated configuration or folder structures, only the files you need to build and deploy your app. Once the installation is done, you can open your project folder:

cd my-app

Inside the newly created project, you can run some commands:

source venv/bin/activate or .\venv\Scripts\activate

Activates the virutal environment required for the project dependency isolation.

Read more about venv.

pip install -r requirements.txt

Installs libraries and dependencies listed in requirements.txt in active environment.

python run.py

Starts the app in development mode. Open http://localhost:5000 to view it in browser.

The page will automatically reload if you make changes to the code. You will see errors in app reload or startup in the console.

How to Update to New Versions?

Create-Flask-App can be simply upgraded using pip:

pip install createflaskapp --upgrade
# or
pip install createflaskapp -U

What's Included?

Your environment after installing everything from requirements.txt will have everything you need to build simple but modern Flask app:

  • Isolated Python environment with fully functional pip.
  • Flask, lightweight WSGI web application framework.
  • A live development server that warns about errors and exceptions.
  • Jinja template engine that is very fast and has very similar syntax to python.
  • Click, composable command line interface toolkit.

Check out this guide for an overview of how these tools fit toghether.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].