An 'Order Taking Service' adapted from an F# example in Domain Modeling Made Functional into Elm
- A TypeScript Apollo Graphql Server
- An embedded Elm worker program (the Domain Brain!)
The server implements a single Mutation: placeOrder
which runs a number of validations on the input, calls some fake services and returns either the recorded PlaceOrderEvents
or Errors
that occur.
install dependencies
> npm install
bundle the server
> npm run build
start the server with
> npm run serve
Visit the graphiql
playground at http://localhost:4000
to try out the service.