Tutorial

1. An order is a train

In this chapter we start Shopfront and write its most important piece of work, placing an order, as a train. By the end, POST /orders prices a cart, reserves stock, takes a payment and confirms the order, and the log shows each of those steps as it happens. When a Trax name is new, the Glossary gives its plain equivalent.

Every C# block on this page is compiled in CI against the release this site was published from.

In this chapter

  1. Requirements
  2. Create the project
  3. The shop
  4. What an order carries
  5. The junctions
  6. The train
  7. Run it
  8. When an order fails
  9. When the chain does not fit

SDK Reference

Junctions | Chain | Run / RunEither | TrainException | AddTrax / AddEffects | UseInMemory | SaveTrainParameters | AddMediator


Next: 1.1 Requirements