Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alex-grover/hexagonal-architecture-python

An example backend implementing Hexagonal Architecture in Python using Flask and SqlAlchemy.
https://github.com/alex-grover/hexagonal-architecture-python

blog-post flask hexagonal-architecture python sqlalchemy

Last synced: 2 months ago
JSON representation

An example backend implementing Hexagonal Architecture in Python using Flask and SqlAlchemy.

Awesome Lists containing this project

README

        

=====================================================================
Hexagonal Architecture example in Python using Flask and SqlAlchemy
=====================================================================

------------------------
Installation and Usage
------------------------

With Python 3.7+, pipenv, and Postgres installed, run the following:

.. highlight:: bash
.. code-block::

$ git clone https://github.com/alex-grover/hexagonal-architecture-python.git
$ cd hexagonal-architecture-python
$ ./setup.sh
$ pipenv run hex db create
$ pipenv run hex db migrate
$ pipenv run hex server

To run the tests:

.. code-block::

$ pipenv run hex db create test
$ pipenv run hex db migrate test
$ pipenv run hex check tests