Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabuhish/startapp
Simple boilerplate ready for development :bowtie: :satisfied: :star: :tada:
https://github.com/sabuhish/startapp
fastapi flask
Last synced: about 2 months ago
JSON representation
Simple boilerplate ready for development :bowtie: :satisfied: :star: :tada:
- Host: GitHub
- URL: https://github.com/sabuhish/startapp
- Owner: sabuhish
- License: mit
- Created: 2020-06-05T12:04:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T12:10:40.000Z (about 4 years ago)
- Last Synced: 2024-10-15T08:41:07.275Z (2 months ago)
- Topics: fastapi, flask
- Language: Python
- Homepage:
- Size: 111 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StartApp
Simple boilerplate ready for development
[![MIT licensed](https://img.shields.io/github/license/marlin-dev/startapp)](https://raw.githubusercontent.com/marlin-dev/startapp/master/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/marlin-dev/startapp.svg)](https://github.com/marlin-dev/startapp/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/marlin-dev/startapp.svg)](https://github.com/marlin-dev/startapp/network)
[![GitHub issues](https://img.shields.io/github/issues-raw/marlin-dev/startapp)](https://github.com/marlin-dev/startapp/issues)
[![Downloads](https://pepy.tech/badge/startapp)](https://pepy.tech/project/startapp)## Notes
- Currently supported frameworks are: FastApi, Flask### 🔨 Installation ###
```sh
$ sudo pip3 install startapp
```### 🕹 Guide
```bash
startapp --help
```
- Type startapp on terminal press enter, questions will promt on terminal choose accroding to your taste.```bash
Right after your choice do the followings accrodingly:
for fastapi:
source .venv/bin/activate
export settings=dev
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8007
for flask:
source .venv/bin/activate
pip install -r requirements.txt
export FLASK_APP=app.app
export settings=dev
flask run
```
Flask Structure```bash
├── app
│  ├── controllers
│  │  ├── app.py
│  │  └── __init__.py
│  ├── __init__.py
│  ├── models
│  │  ├── __init__.py
│  │  └── models.py
│  ├── serializers
│  │  ├── __init__.py
│  │  └── serializer.py
│  └── utils.py
├── app_init
│  ├── app_factory.py
│  ├── __init__.py
│ Â
│ Â
│ Â
├── extensions
│  ├── db_conf.py
│  ├── extension.py
│  ├── __init__.py
│ Â
│ Â
│ Â
├── prestart.sh
├
│ Â
├── README.md
├── requirements.txt
├── server.py
├── settings
│  ├── devsettings.py
│  ├── prodsettings.py
│  ├── settings.py
│  └── testsettings.py
└── tests
├── __init__.py
└── test.py```
FastApi Structure
```bash
├── app
│  ├── controllers
│  │  ├── controller
│  │  │  ├── controller.py
│  │  │  └── schemas.py
│  │  └── __init__.py
│  ├── data
│  │  ├── __init__.py
│  │  └── models.py
│  ├── __init__.py
│  ├── main.py
│  └── utils
│  ├── helpers.py
│  └── __init__.py
├── container.sh
├── core
│  ├── dbsetup.py
│  ├── extensions.py
│  ├── factories.py
│  ├── __init__.py
│  └── settings
│  ├── devsettings.py
│  ├── __init__.py
│  ├── prodsettings.py
│  └── settings.py
├── Dockerfile
├── prestart.sh
├── README.md
├── req.txt
├── requirements.txt
└── start.sh```
## Supported OS
Linux, MacOS## 🌱 Contributing
Fell free to open issue and send pull request.### startapp supports Python >= 3.6