Skip to main content

Build scalable production-grade web applications within seconds

Project description


DraftApp

DraftApp

Build scalable production-grade web applications within seconds

Explore the docs »

Report Bug · Request Feature


Getting Started

It is recommended to install DraftApp (and your project's other dependencies) in a virtualenv.

Once you’ve created and activated your Python virtual environment, you can install the latest stable release of DraftApp into this dedicated development workspace:

pip install draftapp

(back to top)

Set Up a DraftApp project

After you’ve successfully installed DraftApp, you’re ready to create the first draft for your new web application

You can choose from one of the two types:

  • A Basic App provides you with the basic scaffold needed to get you application up and running for development
  • An Advanced App provides you with a high-level scaffold for your development needs with Docker, Kubernetes manifests & Code Obfuscation

Frameworks

To check the available frameworks to set up your application with,

 draftapp --help

Tyeps

To check the available types for the frameworks to set up your application with,

 draftapp flask --help

Basic Flask Application

To set up a basic Flask Application,

 draftapp flask -t basic -n portfolio -d /tmp/Portfolio

Tree Structure for Basic Flask Application

 Portfolio/
├── Makefile
├── README.md
├── alembic
│   ├── README
│   ├── env.py
│   └── script.py.mako
├── alembic.ini
├── bin
│   └── portfolio-cli
├── configs
│   ├── gunicorn.py
│   └── local.ini
├── logs
│   └── app.log
├── portfolio
│   ├── __init__.py
│   ├── config.py
│   ├── constants.py
│   ├── manager.py
│   ├── models.py
│   ├── schemas.py
│   ├── swag
│      └── ping.yaml
│   └── views.py
└── setup.py

Advanced Flask Application

To set up an advanced Flask Application,

 draftapp flask -t advanced -n portfolio -d /tmp/Portfolio

Tree Structure for Advanced Flask Application

Portfolio
├── Dockerfile
├── Makefile
├── README.md
├── alembic
│   ├── README
│   ├── env.py
│   └── script.py.mako
├── alembic.ini
├── bin
│   └── portfolio-cli
├── compile.py
├── configs
│   ├── gunicorn.py
│   ├── local.ini
│   └── test.ini
├── kubernetes_manifests
│   ├── README.md
│   ├── configmap.yaml
│   ├── deployment.yaml
│   ├── hpa.yaml
│   ├── ingress.yaml
│   └── service.yaml
├── lint.py
├── logs
│   └── app.log
├── portfolio
│   ├── __init__.py
│   ├── __pycache__
│      ├── __init__.cpython-36.pyc
│      ├── config.cpython-36.pyc
│      ├── manager.cpython-36.pyc
│      └── views.cpython-36.pyc
│   ├── config.py
│   ├── constants.py
│   ├── exceptions.py
│   ├── log.py
│   ├── manager.py
│   ├── middlewares.py
│   ├── models.py
│   ├── schemas.py
│   ├── swag
│      └── ping.yaml
│   ├── utils.py
│   ├── validators.py
│   └── views.py
├── portfolio.egg-info
│   ├── PKG-INFO
│   ├── SOURCES.txt
│   ├── dependency_links.txt
│   ├── requires.txt
│   └── top_level.txt
├── pytest.ini
├── setup.py
└── tests
  ├── __init__.py
  ├── conftest.py
  └── test_views.py

(back to top)

Roadmap

  • Add Documentation (readthedocs)
  • Add docker-compose for Advanced option
  • Add Additional Python Frameworks
  • Add examples

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/new-feature)
  3. Commit your Changes (git commit -m 'Added new feature')
  4. Push to the Branch (git push origin feature/new-feature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

(back to top)

Acknowledgments

(back to top)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

draftapp-0.1.4.tar.gz (40.1 kB view hashes)

Uploaded Source

Built Distribution

draftapp-0.1.4-py3-none-any.whl (55.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page