forked from EthTx/ethtx_ce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dev - new structure (EthTx#97)
- new app structure (more extendible) - new Docker structure - add scripts - update `pre-commit` - add `meinheld` worker - add gunicorn conf - fix doc
- Loading branch information
Showing
61 changed files
with
278 additions
and
186 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
# Local Development | ||
This repository contains 2 basic applications: `frontend` & `api`. | ||
It is easy to manage, and you can easily add new local application(s). | ||
|
||
This repository contains 2 basic applications: `frontend` & `api`. It is easy to manage, and you can easily add new | ||
local application(s). | ||
|
||
## Basic structure | ||
|
||
Application is based on [blueprints](https://flask.palletsprojects.com/en/2.0.x/blueprints/). | ||
|
||
New extension requires: | ||
- new Python Package in ![ethtx_ce](ethtx_ce) subdirectory. | ||
- `create_app` function (created in new package in `init` file) which returns `Flask` object by calling ![app factory](ethtx_ce/factory.py) file. | ||
|
||
- new Python Package in ![ethtx_ce](ethtx_ce/app) subdirectory. | ||
- `create_app` function (created in new package in `init` file) which returns `Flask` object by | ||
calling ![app factory](ethtx_ce/app/factory.py) file. | ||
- calling a function above in a `wsgi.py` file with assigned url prefix. | ||
|
||
These simple steps allow you to add new extension and integrate with entire application. |
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
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
Oops, something went wrong.