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
- Requirements
- Create the project
- The shop
- What an order carries
- The junctions
- The train
- Run it
- When an order fails
- When the chain does not fit
SDK Reference
Junctions | Chain | Run / RunEither | TrainException | AddTrax / AddEffects | UseInMemory | SaveTrainParameters | AddMediator
Next: 1.1 Requirements