Giter Site home page Giter Site logo

hamilton-lima / wee-flow Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 2.39 MB

Workflow management for angular applications

License: MIT License

JavaScript 7.63% TypeScript 85.07% HTML 6.85% SCSS 0.45%
flow-management workflow-management angular-applications rules-parsing navigation

wee-flow's Introduction

wee-flow

Workflow management for angular applications

Install

 npm install wee-flow ts-expression-evaluator

Examples

Motivation

When you start a new Single page application project everything is beatiful, you are in love with the framework, ng generate is you best friend, and so on.

The you you add one component here, another component there, some grams of this.router.navigate() and voilá! the magic happens.

screenshot

Then time goes by and the navigation between components starts go get a little, err... challenging...

screenshot

And as time goes by the challenge only grows. This motivated me to build this little flow management to remove the decision of the next route from the components to the a set of rules.

How it works

These are the main concepts described in this image:

  • set of rules
  • domain data
  • next route calculation

screenshot

Implementation plan

Phase 1

task status
First route Done
Domain data update Done
Set of rules Done
Rules parsing Done
Navigate to the next route Done
Save workflow state to continue navigation Done
Add url guard to restore state and validate the current page Done
Publish library to npm

Phase 2

task status
Create editor
Rules definition upgrade should reset saved state?
Add route to be called when no next route is found
Add example where the rules can be manually edited
Validate set of rules

Phase 3

task status
Expose events

wee-flow's People

Contributors

dependabot[bot] avatar hamilton-lima avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.