portals-project / portals

Portals is a framework for stateful serverless apps, unifying dataflow streaming with actors
https://www.portals-project.org/
Apache License 2.0
19 stars 2 forks source link

Examples for PortalsJS #127

Closed jspenger closed 1 year ago

jspenger commented 1 year ago

There are currently no (or very few) examples for PortalsJS. It would be a good idea to port some of the suitable Portals Scala examples to PortalsJS for two reasons: 1) this way we can test the PortalsJS API and runtime; and 2) we can integrate them into the playground.

For this, I suggest the following:

jspenger commented 1 year ago

We should discuss this further, but it would make sense to put the examples in a directory portals/portals-js/src/main/resources/examples, one example per file.

For testing purposes: we could consider to run one test which executes each file and checks if they execute without errors. For CI purposes: we could check that the tests all complete, and automatically update the examples on the playground.