Giter Site home page Giter Site logo

expresscion's Introduction

Tests

Expresscion is an open, cloud-friendly SCXML orchestration server.

Expresscion (formerly SCXMLD) provides Node.js express middleware which implements the State Machines as a Service (SMaaS) REST protocol.

Installation

Install PostgreSQL and Redis and set POSTGRES_URL and REDIS_URL in your environment.

You can clone this project boilerplate and run npm install; or follow the instructions.

Init a new Node.js project with npm init.

Create a new index.scxml file in the project root.

Install expresscion as package dependency: npm install --save expresscion

Add to package.json:

  "scripts": {
    "start": "node_modules/expresscion/bin/www index.scxml"
  },

Then run npm start, and visit http://localhost:8002/ in your web browser.

Optionally, install command-line tools: https://github.com/JacobeanRnD/smaas-cli

Deploy to the cloud

Expresscion is designed to work well with existing devops tools. Here is how to deploy to heroku:

heroku create my-app
heroku git:remote -a my-app
heroku addons:create heroku-postgresql
heroku addons:create heroku-redis
heroku config:set POSTGRES_URL=`heroku config:get DATABASE_URL`
heroku config:set HOST_URL=https://my-app.herokuapp.com
git push heroku master

Links

expresscion's People

Contributors

feyzo avatar jbeard4 avatar mgax avatar

Stargazers

 avatar Will Newman avatar Adam Hill avatar Erik Mogensen avatar Doug Crescenzi avatar

Watchers

 avatar James Cloos avatar Will Shown avatar  avatar Tyler Brown avatar

Forkers

mogsie

expresscion's Issues

Memory leak and CPU Spin on interact

Interacting with this scxml file:

wget https://gist.github.com/mogsie/4a3355f76a721f22aaee/raw/2c9f94e940fd76b30b9653547a59089b146861bb/xyzzy.scxml
scxml save xyzzy.scxml
scxml run xyzzy.scxml
scxml interact xyzzy.scxml/34362570-..............
scxml >
'["initial-default"]'
scxml >init

After sending the "init" message, the scxmld pins the CPU and eats about a hundred megabytes per second, until your OS starts to kill other processes :-) As far as I can tell it has to do with parallel states.

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.