SpiffWorkflow is a software development platform for building, running, and monitoring executable diagrams https://www.spiffworkflow.org/
Go to file
jbirddog 9c6c99db8e
Add min/max to the function allow list (#1187)
2024-03-11 10:18:37 -04:00
.github Bump docker/build-push-action from 5.1.0 to 5.2.0 (#1182) 2024-03-08 15:19:13 +00:00
bin Update run_pyl (#1171) 2024-03-06 06:49:50 -08:00
connector-proxy-demo updated connector-http for new commands w/ burnettk 2024-02-14 11:52:31 -05:00
docs Bump markupsafe from 2.1.2 to 2.1.5 (#1143) 2024-03-08 22:58:52 +00:00
spiffworkflow-backend Add min/max to the function allow list (#1187) 2024-03-11 10:18:37 -04:00
spiffworkflow-frontend Added vertical option to radio buttons and fixed the four problems with the compensation range field (#925) 2024-03-08 14:05:43 -05:00
.coderabbit.yaml document language server for coderabbit 2023-12-20 12:59:27 -05:00
.darglint added some base stuff to get pyl working 2022-10-27 09:15:56 -04:00
.flake8 pyl and turn back on autoreload for homepage w/ burnettk 2023-04-13 16:56:49 -04:00
.gitignore Data obj show use params (#1160) 2024-03-04 12:33:24 -08:00
.pre-commit-config.yaml Allow ruff to --fix during pre-commit (#1181) 2024-03-08 10:24:00 -05:00
.readthedocs.yaml use requirements.txt for readthedocs build. 2023-05-18 11:26:47 -04:00
.tool-versions Bump pyyaml to enabled Python 3.12 support for arena (#873) 2024-01-10 11:42:49 -05:00
CONTRIBUTING.rst fix some links 2024-02-11 12:28:57 -05:00
Jenkinsfile ci: sent Discord notifications for all builds 2023-06-01 20:16:17 +02:00
LICENSE Initial commit 2022-10-12 10:17:40 -04:00
Makefile Makefile changes from the messages branch (#1183) 2024-03-08 13:00:51 -05:00
README.md Docs/pycharm setup (#1169) 2024-03-07 14:40:24 -05:00
dev.Dockerfile Dev containers now work with "run as me" (#1129) 2024-02-29 05:27:06 -05:00
dev.docker-compose.yml Fix for first time use of dev containers in clean environment (#1136) 2024-03-01 15:28:06 -05:00
docker-compose.yml Dev Container Tweaks (#1117) 2024-02-28 09:49:45 -05:00
editor.docker-compose.yml feature/fix-run-scheduler-config (#456) 2023-08-31 16:09:26 -04:00
poetry.lock Bump reorder-python-imports from 3.9.0 to 3.12.0 (#1118) 2024-02-28 15:03:38 +00:00
pyproject.toml Docs/pycharm setup (#1169) 2024-03-07 14:40:24 -05:00

README.md

spiff-arena

SpiffArena is a low(ish)-code software development platform for building, running, and monitoring executable diagrams. It is intended to support Citizen Developers and to enhance their ability to contribute to the software development process. Using tools that look a lot like flow-charts and spreadsheets, it is possible to capture complex rules in a way that everyone in your organization can see, understand, and directly execute.

Please visit the SpiffWorkflow website for a Getting Started Guide to see how to use SpiffArena and try it out. There are also additional articles, videos, and tutorials about SpiffArena and its components, including SpiffWorkflow, Service Connectors, and BPMN.js extensions.

Backend Setup, local

Remember, if you don't need a full-on native dev experience, you can run with docker (see below), which saves you from all the native setup. If you have issues with the local dev setup, please consult the troubleshooting guide.

There are three prerequisites for non-docker local development:

  1. python - asdf-vm works well for installing this.
  2. poetry - pip install poetry works
  3. mysql - the app also supports postgres. and sqlite, if you are talking local dev).

When these are installed, you are ready for:

    cd spiffworkflow-backend
    poetry install
    ./bin/recreate_db clean
    ./bin/run_server_locally

Mac Port Errors: On a Mac, port 7000 (used by the backend) might be hijacked by Airplay. For those who upgraded to macOS 12.1 and are running everything locally, your AirPlay receiver may have started on Port 7000 and your server (which uses port 7000 by default) may fail due to this port already being used. You can disable this port in System Preferences > Sharing > AirPlay receiver.

Poetry Install Errors: If you encounter errors with the Poetry install, please note that MySQL and PostgreSQL may require certain packages 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. Correct these, and rerun the above commands.

Using PyCharm? If you would like to run or debug your project within an editor like PyCharm please see These directions for PyCharm Setup.

Keycloak Setup

You will want an openid server of some sort for authentication. There is one built in to the app that is used in the docker compose setup for simplicity, but this is not to be used in production, and non-compose defaults use a separate keycloak container by default. You can start it like this:

./keycloak/bin/start_keycloak

It'll be running on port 7002 If you want to log in to the keycloak admin console, it can be found at http://localhost:7002, and the creds are admin/admin (also logs you in to the app if running the frontend)

Frontend Setup, local

First install nodejs (also installable via asdf-vm), ideally the version in .tool-versions (but likely other versions will work). Then:

cd spiffworkflow-frontend
npm install
npm start

Assuming you're running Keycloak as indicated above, you can log in with admin/admin.

Run tests

./bin/run_pyl

Run cypress automated browser tests

Get the app running so you can access the frontend at http://localhost:7001 in your browser by following the frontend and backend setup steps above, and then:

./bin/run_cypress_tests_locally

Docker

For full instructions, see Running SpiffWorkflow Locally with Docker.

The docker-compose.yml file is for running a full-fledged instance of spiff-arena while editor.docker-compose.yml provides BPMN graphical editor capability to libraries and projects that depend on SpiffWorkflow but have no built-in BPMN edit capabilities.

Using Docker for Local Development

If you have docker and docker compose, as an alternative to locally installing the required dependencies, you can leverage the development docker containers and Makefile while working locally. To use, clone the repo and run make. This will build the required images, install all dependencies, start the servers and run the linting and tests. Once complete you can open the app and code changes will be reflected while running.

After the containers are set up, you can run make start-dev and make stop-dev to start and stop the servers. If the frontend or backend lock file changes, make dev-env will recreate the containers with the new dependencies.

Please refer to the Makefile as the source of truth, but for a summary of the available make targets:

Target Action
dev-env Builds the images, sets up the backend db and installs npm and poetry dependencies
start-dev Starts the frontend and backend servers, also stops them first if they were already running
stop-dev Stops the frontend and backend servers
be-tests-par Runs the backend unit tests in parallel
fe-lint-fix Runs npm lint:fix in the frontend container
run-pyl Runs all frontend and backend lints, backend unit tests

Contributing

To start understanding the system, you might:

  1. Explore the demo site via the Getting Started Guide
  2. Clone this repo, cd docs, run ./bin/build, and open your browser to http://127.0.0.1:8000 to view (and ideally edit!) the docs
  3. Check out our GitHub issues, find something you like, and ask for help on discord

Monorepo

This is a monorepo based on git subtrees that pulls together various spiffworkflow-related projects. FYI, some scripts:

ls bin | grep subtree

License

SpiffArena's main components are published under the terms of the GNU Lesser General Public License (LGPL) Version 3.

Support

You can find us on our Discord Channel. Commercial support for SpiffWorkflow is available from Sartography. Please contact us via the schedule a demo link on the SpiffWorkflow website to discuss your needs.