Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TechnolgiesCloneContributeLicense

This application is a e-commerce prototype, this e-commerce is divided in 3 federated modules Container (shell of the application), ProductList (component responsible for fetching and listing all products) and Cart (responsible for list all products that user saved on his cart or remove it)

Technologies

This application architecture is organized in bidirectional modules:
  • Container (Shell of the app), exports 'App' where all modules are combined to form the application - running in port 3000
  • ProductList (List of all products), export 'ProductList' and consumes 'App' from Container - running in port 3001
  • Cart (Shopping Cart), export 'Cart' and consumes 'App' from Container - running in port 3002

More

The same application will be seen on all ports, but, each one loads the modules that is consuming on RUNTIME, meaning that the bundle of each app will be different containing only the code that belongs to he and will not include the remotes modules its consumes. The modules share their dependencies as well to avoid duplicate dependencies load

Clone

Prerequisites

  • Node >= 10.16 e npm >= 5.6
  • Package manager - NPM or YARN

Starting

git clone https://github.com/Fernanda-Kipper/module-federarion.git
npm install
Start server that list products
  cd ProductList
  npm run server
Start Clients
  cd Container
  npm run dev
  cd ProductList
  npm run dev
  cd Cart
  npm run dev

Contribute 🚀

If you want to contribute, clone this repo, create your work branch and get your hands dirty!

git clone https://github.com/Fernanda-Kipper/video-chat.git
git checkout -b feature/NAME

At the end, open a Pull Request explaining the problem solved or feature made, if exists, append screenshot of visual modifications and wait for the review!

How to create a Pull Request

Commit pattern

License 📃

This project is under MIT license

About

E-commerce prototype using React, Webpack 5 and Module Federation with multiple separate builds to form a single application

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages