-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
417 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode | ||
.idea | ||
*.pyc | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Changelog | ||
========= | ||
|
||
Version 0.5 | ||
|
||
- Updated commands to use click (flask-script is no more) | ||
- Empty package is now used | ||
- Added docs to newly created projects | ||
- Random fixes here and there =3 | ||
|
||
Version 0.3.2 | ||
|
||
- Changed cookiecutter input to ask wether the app will be rest or _plain_ http. | ||
- New default dependencies. | ||
|
||
Version 0.3.1 | ||
|
||
- Still quite unsure | ||
|
||
Version 0.3 | ||
|
||
- I'm quite unsure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FLASK_APP=wsgi.py | ||
FLASK_DEBUG=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Getting Started | ||
|
||
## main.py | ||
|
||
Holds your project class definition and factory. If you want to tweak with it, | ||
be sure to read the docs at https://github.com/italomaia/empty first. | ||
|
||
## wsgi.py | ||
|
||
This is where your project instance lives. | ||
|
||
## config.py | ||
|
||
Holds most of your configuration, like which extensions to use, which | ||
blueprints to load, how looging should work, etc. | ||
|
||
## commands.py | ||
|
||
You can add custom commands to your project here. | ||
|
||
## extensions.py | ||
|
||
Your extensions are defined and loaded here. If you're adding a new | ||
extension to your project, might be a good idea to create its instance | ||
here (and load it through your configuration). | ||
|
||
## mixins.py | ||
|
||
Right now it only has a http mixin for some standard http behavior. Useful | ||
for vanilla web projects. Not so much if you're building a web service. | ||
|
||
## Some examples below | ||
|
||
``` | ||
# run your flask application | ||
flask run | ||
# create a new blueprint | ||
flask new-app name | ||
# create your migration files | ||
flask db init | ||
# given your models are defined, this creates your migrations | ||
flask db migrate | ||
# applies migrations to the database (creates tables and so on) | ||
flask db upgrade | ||
# looks up your tests and runs them =D (blueprints and project level) | ||
flask test | ||
# looks up roles (see flask-security docs) | ||
flask roles | ||
# looks up users (see flask-security docs) | ||
flask users | ||
``` |
Oops, something went wrong.