Code Monkey home page Code Monkey logo

cookbook's Introduction

Viewflow Cookbook

Welcome to the Viewflow Cookbook! This repository contains a collection of sample projects and recipes for the latest version of the Viewflow library.

What's in this repository?

This repository contains a variety of samples and recipes that demonstrate the different features and capabilities of Viewflow. You'll find examples of simple workflows, complex workflows, custom UI components, and more.

To get started, simply browse the different samples and choose the one that best fits your needs. Each sample includes detailed instructions on how to set it up and run it.

  • CRUD 101 - Admin-style CRUD application
  • Dashboard - Quick material-design dashboard with Chart.js
  • Forms 101 - Various form options samples
  • FSM 101 - Finite state machine workflow UI and REST API
  • JSON 101 - JSON storage and polymorphic user model
  • Legacy DB - Django and Database with composite foreign keys sample
  • Timescale DB - Access to timescale database from Django
  • Workflow 101 - HelloWorld workflow sample

How to use this repository

To use the samples in this repository, you'll need to have Django and Viewflow installed. Once you've installed these dependencies, you can clone this repository and run the sample projects locally.

To clone this repository, run the following command:

    git clone https://github.com/viewflow/cookbook.git

Then, navigate to the sample project you want to run, and follow the instructions in the README file.

Samples for previous versions

If you're using an older version of Viewflow, you can still find samples for those versions in the v1 branch. However, we strongly recommend upgrading to the latest version of Viewflow for the best performance, features, and security.

Getting Help

If you have any questions about Viewflow or the Viewflow Cookbook, feel free to reach out to the Viewflow community on Stack Overflow or GitHub Discussions We're always happy to help!

Contributions

Please feel free to use these samples as a starting point for your own projects. If you have any suggestions for new samples, please open an issue

cookbook's People

Contributors

dependabot[bot] avatar kmmbvnr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookbook's Issues

Get flow in shell?

Thanks to author project for this beautiful and helpful app, but I'm a novice and all work fine from demo frontend and nothing from the django code...so I kindly ask you: how the flow can be managed without frontend:

x, created =TestProcess.objects.get_or_create()
Out[1]: (<TestProcess: <Process 19> - NEW>, True)

The process exist

In [12]: x.status
Out[12]: 'NEW'

the status is correct

x.task_set.exists
Out[23]: <bound method BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_method of <django.db.models.fields.related_descriptors.create_reverse_many_to_one_manager.<locals>.RelatedManager object at 0x7f0d917c1438>>

In my flow I've put:

class HellxoWorldFlow(Flow):
    start = (
        flow.Start(
            flow_views.CreateProcessView,
            fields=['text', 'wo_rif'],
            task_title=_('Start'))
        .Permission(auto_create=True)
        .Next(this.secondstep)
    )

but x.flow_class seems to be '', and a "x.next_flow_step" doesn't exist, how can I get the next step for this process?
Thanks, BR

Column title for composite key

It would be nice if CompositeKey column names refer to model fields instead of database column names. In a legacy database name could be far from today standars. When I tried to use I had to use real column name in CompositeKey, if I use my "new" model name (Django standard) it complains because the column doesn't exist. So I used database column name in model name which makes less clear my code because I'm referring to a related entity by its foreign key instead of my "pretty Django" name.

Middleware clean-up error introduced

First, I really appreciate your work on this! That said, I'm very new to JS and know very little about securing logins, but on your last push, when line 20 was added to middleware.js, postponedRSAAs = [] attempts to reallocate a constant array...and fails when compiled. Although slightly slower, I think that this can be avoided with postponedRSAAs.length = 0

Issue with import storage from 'redux-persist/es/storage'

Hello!
I'm new to React\Redux and I encountered with the problem. I try to follow the Django+React article in my project and get an error. The only presence of that import storage in store.js is enough to get the error.
The example in your repo works just fine, but I can not find the difference between your example and my code. I am using Webpack however.
Here's the error:
VM6423:1 Uncaught SyntaxError: Unexpected identifier at Object.<anonymous> (bundle.js:126) at m (bundle.js:1) at c (bundle.js:1) at Object.eval (eval at <anonymous> (bundle.js:109), <anonymous>:10:16) at Object.eval (eval at <anonymous> (bundle.js:109), <anonymous>:43:27) at eval (eval at <anonymous> (bundle.js:109), <anonymous>:44:30) at Object.<anonymous> (bundle.js:109) at m (bundle.js:1) at c (bundle.js:1) at Object.eval (eval at <anonymous> (bundle.js:108), <anonymous>:21:23)

Here's my webpack.config.js, just in case: https://pastebin.com/q2yye7jy
And here's my dependencies: https://pastebin.com/KuAuw5qD

cookbook react_ui backend requirements error

ERROR

ERROR: Invalid requirement: 'pyaml=3.13' (from line 4 of requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
ModuleNotFoundError: No module named 'celery'

django==2.1.2
djangorestframework==3.9.0
django-rest-swagger==2.2.0
was pyaml=3.13 change to pyaml==3.13
django-viewflow-pro==1.4.1
django-material-pro==1.4.1
added celery

Action on_delete needed

In the Blood Test model (model.py) classes BloodSample, Biochemistry, TumorMarkers, Hormones, BloodTestProcess require a second argument on_delete = for ForeignKey() and OneToOneField() functions

Not able to install django-viewflow-pro==1.4.1

I cloned the respository. And run pip install -r requirements.txt , but it gives me error
ERROR: Could not find a version that satisfies the requirement django-viewflow-pro==1.4.1 (from versions: none)
ERROR: No matching distribution found for django-viewflow-pro==1.4.1

How to use viewflo-pro?

Feature Request: Logout functionality in redux-jwt-auth

So, I can login and obtain tokens. Any suggestions on how to implement logout functionality?
I think logout can be achieved by deleting the tokens from localStorage, but is there any cleaner way to do the same?

I have followed the this medium article.

cookbook helloworld requirement install failure

pip install -r requirements.txt 
Collecting pytz (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Collecting django~=2.2 (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/2b/b2/eb6230a30a5cc3a71b4df733de95c1a888e098e60b5e233703936f9c4dad/Django-2.2.10-py3-none-any.whl
Collecting django-material-pro<2.0 (from -r requirements.txt (line 3))
  Could not find a version that satisfies the requirement django-material-pro<2.0 (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for django-material-pro<2.0 (from -r requirements.txt (line 3))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.