2022-10-12 14:22:22 +00:00
|
|
|
Spiffworkflow Backend
|
|
|
|
==========
|
2022-11-11 16:02:29 +00:00
|
|
|
|Tests| |Codecov| |pre-commit| |Black|
|
2022-10-12 14:22:22 +00:00
|
|
|
|
2024-02-11 17:28:57 +00:00
|
|
|
.. |Tests| image:: https://github.com/sartography/spiff-arena/actions/workflows/tests.yml/badge.svg
|
|
|
|
:target: https://github.com/sartography/spiff-arena/actions?workflow=Tests
|
2022-10-12 14:22:22 +00:00
|
|
|
:alt: Tests
|
2024-02-11 17:28:57 +00:00
|
|
|
.. |Codecov| image:: https://codecov.io/gh/sartography/spiff-arena/branch/main/graph/badge.svg
|
|
|
|
:target: https://codecov.io/gh/sartography/spiff-arena
|
2022-10-12 14:22:22 +00:00
|
|
|
:alt: Codecov
|
|
|
|
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
|
|
|
|
:target: https://github.com/pre-commit/pre-commit
|
|
|
|
:alt: pre-commit
|
|
|
|
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
|
|
:target: https://github.com/psf/black
|
|
|
|
:alt: Black
|
|
|
|
|
|
|
|
|
2023-05-17 17:50:23 +00:00
|
|
|
|
2022-10-12 14:22:22 +00:00
|
|
|
Features
|
|
|
|
--------
|
|
|
|
|
|
|
|
* Backend API portion of the spiffworkflow engine webapp
|
|
|
|
|
|
|
|
|
|
|
|
Running Locally
|
|
|
|
---------------
|
|
|
|
|
2023-10-14 03:32:01 +00:00
|
|
|
See detailed instructions at the root of spiff-arena, but:
|
|
|
|
|
2022-10-12 14:22:22 +00:00
|
|
|
* Install libraries using poetry:
|
|
|
|
|
|
|
|
.. code:: console
|
|
|
|
|
|
|
|
$ poetry install
|
|
|
|
|
2024-03-07 19:40:24 +00:00
|
|
|
NOTE: Mysql and Postgres may require special binary files exist on your system prior
|
|
|
|
to installing these libraries. Please see the `PyPi mysqlclient instructions`_
|
|
|
|
and the pre-requisites for the `Postgres psycopq2 adapter`_ Following the
|
|
|
|
instructions here carefully will assure your OS has the right dependencies
|
|
|
|
installed.
|
|
|
|
|
2022-10-12 14:22:22 +00:00
|
|
|
* Setup the database - uses mysql and assumes server is running by default:
|
|
|
|
|
|
|
|
.. code:: console
|
|
|
|
|
|
|
|
$ ./bin/recreate_db clean
|
|
|
|
|
|
|
|
* Run the server:
|
|
|
|
|
|
|
|
.. code:: console
|
|
|
|
|
|
|
|
$ ./bin/run_server_locally
|
|
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
2023-05-27 22:17:51 +00:00
|
|
|
* Python 3.10+
|
2022-10-12 14:22:22 +00:00
|
|
|
* Poetry
|
|
|
|
|
|
|
|
|
|
|
|
Contributing
|
|
|
|
------------
|
|
|
|
|
|
|
|
Contributions are very welcome.
|
|
|
|
To learn more, see the `Contributor Guide`_.
|
|
|
|
|
|
|
|
|
|
|
|
Issues
|
|
|
|
------
|
|
|
|
|
|
|
|
If you encounter any problems,
|
|
|
|
please `file an issue`_ along with a detailed description.
|
|
|
|
|
|
|
|
|
|
|
|
Credits
|
|
|
|
-------
|
|
|
|
|
|
|
|
This project was generated from `@cjolowicz`_'s `Hypermodern Python Cookiecutter`_ template.
|
|
|
|
|
|
|
|
.. _@cjolowicz: https://github.com/cjolowicz
|
|
|
|
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
|
|
|
.. _PyPI: https://pypi.org/
|
|
|
|
.. _Hypermodern Python Cookiecutter: https://github.com/cjolowicz/cookiecutter-hypermodern-python
|
2023-10-14 03:32:01 +00:00
|
|
|
.. _file an issue: https://github.com/sartography/spiffworkflow-arena/issues
|
2022-10-12 14:22:22 +00:00
|
|
|
.. github-only
|
2024-03-07 19:40:24 +00:00
|
|
|
.. _PyPi mysqlclient instructions: https://pypi.org/project/mysqlclient/
|
|
|
|
.. _Postgres psycopq2 adapter: https://www.psycopg.org/docs/install.html#prerequisites
|