Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wklken/flask_dir_gen
A shell script to generate flask project dir.
https://github.com/wklken/flask_dir_gen
Last synced: 3 days ago
JSON representation
A shell script to generate flask project dir.
- Host: GitHub
- URL: https://github.com/wklken/flask_dir_gen
- Owner: wklken
- Created: 2015-08-04T03:28:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-04T04:02:14.000Z (over 9 years ago)
- Last Synced: 2024-04-16T04:46:26.301Z (7 months ago)
- Language: Python
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask_dir_gen
Generate flask project dir at one command
### Usage
#### 1. generate
use `test` as the example
generate flask project dir
```
sh init_project.sh test
```then you got
```
test
├── CHANGELOG.md
├── DOC.md
├── MANIFEST.in
├── README.md
├── config-sample.py
├── config.py -> $THE_PATH_OF/flask_dir_gen/test/config-sample.py
├── requirements.txt
├── runserver.py
├── setup.py
├── sql
└── test
├── __init__.py
├── app.py
├── configs
│ ├── __init__.py
│ └── settings.py
├── models
│ └── __init__.py
├── static
│ ├── css
│ ├── img
│ └── js
├── templates
├── utils
│ └── __init__.py
├── viewmodels
│ └── __init__.py
└── views
├── __init__.py
└── hello.py12 directories, 18 files
```
#### 2. start
```
cd testpython runserver.py
* Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
* Restarting with stat
```then you can access `http://127.0.0.1:8000/`
#### pkg
```
python setup.py sdist
```you got
```
dist/
└── Test-0.1.0.tar.gz
```you can use `pip install` to install the package
------------------------
------------------------wklken
Email: [email protected]
Github: https://github.com/wklken
Blog: [http://www.wklken.me](http://www.wklken.me)