This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.
The Tractor Store - sample code from the book Micro Frontends in Action
The Tractor Store - sample code from the book Micro Frontends in Action
# Sample Code - Micro Frontends in Action This is the example code that goes along with the Manning book [Micro Frontends in Action](https://www.manning.com/books/micro-frontends-in-action?a_aid=mfia&a_bid=5f09fdeb). ## Hosted examples You can interact with the running examples here: [https://the-tractor.store](https://the-tractor.store) 🚜 ## Local machine ### Prerequisites 1. Clone [this git repository](https://github.com/naltatis/micro-frontends-in-action-code) or [download & extract the zip](https://github.com/naltatis/micro-frontends-in-action-code/archive/master.zip) to your local machine. 2. Make sure you have [Node.js](https://nodejs.org/) (v18 or newer) installed. ``` $ node -v v18.x.x ``` 3. Go into the main directory and install all required dependencies. ``` cd micro-frontends-in-action-code npm install ``` 4. Install Nginx on your machine. The `nginx` executable only has to be present - no configuration required. - _macOS (via [Homebrew](https://brew.sh)):_ `brew install nginx` - _Debian/Ubuntu:_ `sudo apt-get install nginx` - _Windows:_ Binaries included in this repository. No installation required. Five examples require Nginx: - `04_routing` - `05_ssi` - `06_timeouts_down` - `16_universal` - `18_asset_registration_include` ### Running the code All examples involve starting up multiple applications which are owned by different teams. There is an NPM run for each directory. You can start examples like this: `npm run [name_of_example]`. The following command will start example #5: ``` npm run 05_ssi ``` The script **starts all applications** and **shows a combined log output**. _NOTE: Nginx stdout do not work on Windows_.  It **waits until the servers are ready** and **opens the example pa
Ask questions or discuss this product. New comments are reviewed before publishing.
Loading comments...